I have an ip address i want to locate all the nearest places ip addresses marked with marker in google maps. How can i achieve it ?
A:
You can use ip2location to get the location of the IP and the use Google Geocoding API to find it's coordinates and place it on a map.
xmarcos
2010-09-28 08:52:12
Here is an example http://www.seomoz.org/ip2loc ;)
xmarcos
2010-09-28 08:54:13
A:
If you want to do this client side, consider using the Google Loader's ClientLocation. It provides IP-based geolocation:
http://code.google.com/apis/ajax/documentation/#ClientLocation
I'm not sure what you mean by nearest places, perhaps you'll then want to reverse geocode the latlng returned by google.loader.ClientLocation:
http://code.google.com/apis/maps/documentation/javascript/reference.html#Geocoder
broady
2010-10-11 14:46:27