tag:blogger.com,1999:blog-5655258176117800735.post9130437332272461635..comments2017-12-15T08:35:25.392+05:30Comments on Java by examples: GeoLocation - javaQuery APIVicky Thakorhttp://www.blogger.com/profile/16098584321464927171noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-5655258176117800735.post-21997806838096507702012-05-24T18:06:38.903+05:302012-05-24T18:06:38.903+05:30thanks...thanks...Vicky Thakorhttps://www.blogger.com/profile/16098584321464927171noreply@blogger.comtag:blogger.com,1999:blog-5655258176117800735.post-83304762881244644372012-05-24T12:15:05.967+05:302012-05-24T12:15:05.967+05:30Awesome.. Worked like a charm.. made my day :)Awesome.. Worked like a charm.. made my day :)anshulnoreply@blogger.comtag:blogger.com,1999:blog-5655258176117800735.post-27328526473795079002012-03-26T10:41:24.403+05:302012-03-26T10:41:24.403+05:30vkijust4u@javaquery.com | And thank you for the co...vkijust4u@javaquery.com | And thank you for the compliment...Plz Join Google+ if you are using....Vicky Thakorhttps://www.blogger.com/profile/16098584321464927171noreply@blogger.comtag:blogger.com,1999:blog-5655258176117800735.post-86275188182483129512012-03-25T22:56:34.031+05:302012-03-25T22:56:34.031+05:30can u give me your email.........so i could consul...can u give me your email.........so i could consult u for further problems bro..............thanxAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5655258176117800735.post-21394460295505100472012-03-25T22:55:20.547+05:302012-03-25T22:55:20.547+05:30great work vicky........you are the guy bro....tan...great work vicky........you are the guy bro....tanx..............Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5655258176117800735.post-26817810090149030852012-02-08T14:56:09.940+05:302012-02-08T14:56:09.940+05:30http://www.javaquery.com/2011/12/how-to-get-visito...http://www.javaquery.com/2011/12/how-to-get-visitors-ip-address-in-java.htmlVicky Thakorhttps://www.blogger.com/profile/16098584321464927171noreply@blogger.comtag:blogger.com,1999:blog-5655258176117800735.post-37894748415636657552012-02-08T14:53:39.024+05:302012-02-08T14:53:39.024+05:30There is no fault in your lappy.Location of IP add...There is no fault in your lappy.Location of IP address depends on your service provider if they use strong proxy to hide location we can't determine the exact location.Vicky Thakorhttps://www.blogger.com/profile/16098584321464927171noreply@blogger.comtag:blogger.com,1999:blog-5655258176117800735.post-60759081521331349922012-02-08T14:28:55.916+05:302012-02-08T14:28:55.916+05:30hi
My location is Chennai. But the program shows ...hi<br /><br />My location is Chennai. But the program shows Bangalore. What could be the mistake in my lapGolang Loverhttps://www.blogger.com/profile/09777544935576023203noreply@blogger.comtag:blogger.com,1999:blog-5655258176117800735.post-3216411259155026122012-01-18T10:19:14.895+05:302012-01-18T10:19:14.895+05:30I uploaded javaQuery 1.0.jar again so please downl...I uploaded javaQuery 1.0.jar again so please download it and let me know is it working or not. Will you send me your personal email on support@0signals.com asi want some other discussion with you. download latest API https://sourceforge.net/projects/javaqueryapi/files/javaQuery1.0/javaQuery%20Bundle/ and if problem still exist i'll help you to solve the problem.Vicky Thakorhttps://www.blogger.com/profile/16098584321464927171noreply@blogger.comtag:blogger.com,1999:blog-5655258176117800735.post-6705741492229307662012-01-17T23:27:00.970+05:302012-01-17T23:27:00.970+05:30not running on server, I have used this code to my...not running on server, I have used this code to my running website http://www.bazaardekho.com/test3.jsp<br /><br />& the code using in this page is just:<br /><br /><%@ page import="javaQuery.j2ee.GeoLocation" %><br /><%<br />request.getHeader("VIA");<br />String ipAddress = request.getHeader("X-FORWARDED-FOR");<br /> if (ipAddress == null) {<br /> ipAddress = request.getRemoteAddr();<br /> }<br />GeoLocation gl = new GeoLocation();<br />gl.GetGeoLocationByIP(ipAddress);<br /> String IP = gl.IP;<br /> String Country = gl.Country;<br /> String City_Name = gl.City;<br /> String Latitude = gl.Latitude;<br /> String Longitude = gl.Longitude;<br /> out.print("IP:"+IP+"<br>");<br /> out.print("Country:"+Country+"<br>");<br /> out.print("City name:"+City_Name+"<br>");<br /> out.print("Latitude:"+Latitude+"<br>");<br /> out.print("Longitude:"+Longitude+"<br>");<br /> %>Shailhttp://bazaardekho.comnoreply@blogger.comtag:blogger.com,1999:blog-5655258176117800735.post-3144383753799982502012-01-17T22:32:49.706+05:302012-01-17T22:32:49.706+05:30Are you testing on local system??? It won't gi...Are you testing on local system??? It won't give you details for IP 127.0.0.1. Try it on your server it works fine..Vicky Thakorhttps://www.blogger.com/profile/16098584321464927171noreply@blogger.comtag:blogger.com,1999:blog-5655258176117800735.post-17857595710424966612012-01-17T21:32:18.289+05:302012-01-17T21:32:18.289+05:30<%@ page import="java.net.InetAddress"...<%@ page import="java.net.InetAddress" %><br /> <%@ page import="java.net.UnknownHostException" %><br /> <%@ page import="javaQuery.j2ee.GeoLocation" %><br /><%<br />request.getHeader("VIA");<br />String ipAddress = request.getHeader("X-FORWARDED-FOR");<br /> if (ipAddress == null) {<br /> ipAddress = request.getRemoteAddr();<br /> }<br />GeoLocation gl = new GeoLocation();<br />gl.GetGeoLocationByIP(ipAddress);<br /> String IP = gl.IP;<br /> String Country = gl.Country;<br /> String City_Name = gl.City;<br /> String Latitude = gl.Latitude;<br /> String Longitude = gl.Longitude;<br />%>Shailhttp://bazaardekho.comnoreply@blogger.comtag:blogger.com,1999:blog-5655258176117800735.post-44018866416336685142012-01-17T20:53:51.113+05:302012-01-17T20:53:51.113+05:30I have site in Java www.0signals.com and its runni...I have site in Java www.0signals.com and its running good with this API. Will you plz post your code snippet here.Vicky Thakorhttps://www.blogger.com/profile/16098584321464927171noreply@blogger.comtag:blogger.com,1999:blog-5655258176117800735.post-53841737119337504632012-01-17T18:46:34.929+05:302012-01-17T18:46:34.929+05:30@vicky: thanks for the link. With this the visitor...@vicky: thanks for the link. With this the visitor IP is returning but I am not getting the city name, country name, latitude & longitude.Shailhttp://bazaardekho.comnoreply@blogger.comtag:blogger.com,1999:blog-5655258176117800735.post-68642715539300022392012-01-17T17:49:01.050+05:302012-01-17T17:49:01.050+05:30http://www.javaquery.com/2011/12/how-to-get-visito...http://www.javaquery.com/2011/12/how-to-get-visitors-ip-address-in-java.html Use this article..Vicky Thakorhttps://www.blogger.com/profile/16098584321464927171noreply@blogger.comtag:blogger.com,1999:blog-5655258176117800735.post-31336089188099029632012-01-17T17:01:37.441+05:302012-01-17T17:01:37.441+05:30when I upload this code to my hosting then I am no...when I upload this code to my hosting then I am not getting the city name, longitude & latitude, its only returning the IP address of my server not the IP of visitor.Shailhttp://bazaardekho.comnoreply@blogger.comtag:blogger.com,1999:blog-5655258176117800735.post-34402788010859818532012-01-15T10:17:29.579+05:302012-01-15T10:17:29.579+05:30As you are programmer and you know that location o...As you are programmer and you know that location of IP defer sometime. If they are using strong proxy we can't track perfect location. And for javaQuery API i used free service so location may not be perfect. And its not possible to get perfect Longitude-Latitude of device. If you are using mobile device. Which has GPS facilities thats the only way to get Latitude-Longitude accurate. Even google can't track your system's perfect location. This is the reason. Thank You...Vicky Thakorhttps://www.blogger.com/profile/16098584321464927171noreply@blogger.comtag:blogger.com,1999:blog-5655258176117800735.post-91795757803091081882012-01-14T19:47:30.826+05:302012-01-14T19:47:30.826+05:30Thanks for the API.
The latitude and longitude det...Thanks for the API.<br />The latitude and longitude detected are not very accurate. Is there any way to improve it ?Anonymousnoreply@blogger.com