vaskovasilev Posted October 9, 2013 Share Posted October 9, 2013 hello, i want to get the exact coordinates of IP address - latitude, longitude. i am using google geocode but it needs to confirm that you want to share the information. after that i tried other methods - ipinfodb.. and others api but they didnt give me the same coordinates as google. is there any way ? Quote Link to comment https://forums.phpfreaks.com/topic/282826-php-get-exact-coordinates-by-ip/ Share on other sites More sharing options...
winningdave Posted October 9, 2013 Share Posted October 9, 2013 You're never going to get an exact location as you are relying on the ISP of the user. Your best bet would be to use HTML geolocating and then look up a location from there Quote Link to comment https://forums.phpfreaks.com/topic/282826-php-get-exact-coordinates-by-ip/#findComment-1453245 Share on other sites More sharing options...
vaskovasilev Posted October 9, 2013 Author Share Posted October 9, 2013 so.. there is no way to take the coordinates without confirmation ? Quote Link to comment https://forums.phpfreaks.com/topic/282826-php-get-exact-coordinates-by-ip/#findComment-1453249 Share on other sites More sharing options...
Ch0cu3r Posted October 9, 2013 Share Posted October 9, 2013 (edited) so.. there is no way to take the coordinates without confirmation ? I guess not no. As the reason for the confirmation would be for privacy. if you are tracking geolocation you should tell the user. Edited October 9, 2013 by Ch0cu3r Quote Link to comment https://forums.phpfreaks.com/topic/282826-php-get-exact-coordinates-by-ip/#findComment-1453267 Share on other sites More sharing options...
Irate Posted October 9, 2013 Share Posted October 9, 2013 I guess not no. As the reason for the confirmation would be for privacy. if you are tracking geolocation you should tell the user. Most browsers nowadays do just that - they ask the user if they want to execute the geolocation part of the script, if there is any. There is no way to force the browser into sending the exact coordinates to your server (unless of course you use malicious approaches to this). Quote Link to comment https://forums.phpfreaks.com/topic/282826-php-get-exact-coordinates-by-ip/#findComment-1453355 Share on other sites More sharing options...
vaskovasilev Posted October 10, 2013 Author Share Posted October 10, 2013 there are many sites that take the coordinates without google, but they are very close to google coordinates. i tried some api but .. they are not so close. i ask this - is there a tool, web service, php, database that will give me the closest coordinates that give me google. in this case there wont be confirmation. Quote Link to comment https://forums.phpfreaks.com/topic/282826-php-get-exact-coordinates-by-ip/#findComment-1453378 Share on other sites More sharing options...
Irate Posted October 10, 2013 Share Posted October 10, 2013 Try ipgetinfo.com, maybe? Quote Link to comment https://forums.phpfreaks.com/topic/282826-php-get-exact-coordinates-by-ip/#findComment-1453407 Share on other sites More sharing options...
vaskovasilev Posted October 12, 2013 Author Share Posted October 12, 2013 no.. the same wrong coordinates like others Quote Link to comment https://forums.phpfreaks.com/topic/282826-php-get-exact-coordinates-by-ip/#findComment-1453684 Share on other sites More sharing options...
junejune Posted November 25, 2013 Share Posted November 25, 2013 What is the IP address? If the lat/long is incorrect you can try to contact the provider see if they can update it. You can check your location at IP2Location.com too. Quote Link to comment https://forums.phpfreaks.com/topic/282826-php-get-exact-coordinates-by-ip/#findComment-1459906 Share on other sites More sharing options...
Ninjakreborn Posted November 26, 2013 Share Posted November 26, 2013 There is now way to do what you are trying to. You cannot get someone's location via a browser without some sort of confirmation. If your building a mobile app (IOS/Android) then you can access the GPS, but still it would require the necessary permissions. In regards to checking someones browser and getting the location, that is not possible. There are ways to get pretty close to the location (very close actually) but not without confirmation. You can get Longitude/Latitude using HTML 5 though. http://www.w3schools.com/html/html5_geolocation.asp http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_geolocation Either way, good luck! Quote Link to comment https://forums.phpfreaks.com/topic/282826-php-get-exact-coordinates-by-ip/#findComment-1460094 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.