Does Google have any service that can turn an IP into a location?
Asked
Active
Viewed 1,975 times
1
-
1http://stackoverflow.com/questions/3233767/how-to-load-google-clientlocation-api-without-loading-the-whole-google-maps-api – makes May 12 '11 at 23:10
-
returns nothing on localhost, can it work on localhost? thanks for the link – Adam Ramadhan May 13 '11 at 07:01
1 Answers
1
Try google.loader.ClientLocation
.
ClientLocation
has the following properties:
google.loader.ClientLocation.latitude
google.loader.ClientLocation.longitude
google.loader.ClientLocation.address.city
google.loader.ClientLocation.address.country
google.loader.ClientLocation.address.country_code
google.loader.ClientLocation.address.region

makes
- 6,438
- 3
- 40
- 58
-
Yes, it should work as long as the client executing the script can connect to Google's servers. – makes May 13 '11 at 10:13
-
is there a good link to read from google about why i or we cant connect to google servers ? – Adam Ramadhan May 13 '11 at 10:19