javascript - Google Maps API v3 - IP-based Geolocation -


has been able geo-location based on person's ip work using google maps api v3 javascript?

it seems me google provided example doesn't work.

http://gmaps-samples-v3.googlecode.com/svn/trunk/commonloader/clientlocation.html

question:

  1. does example work anyone?

  2. how geolocation based on person's ip work using google maps api v3?

q1: works here, , many other locations. note geolocation ip addresses not reliable science. getting location of isp, can quite far away, , in addition ip-to-location databases aren't date latest changes, might not have data particular ip address -- happening in case.

maxmind, offers popular ip-to-location database published statistics on database:

q2: way geolocation ip address through google maps api v3 using same method used in example provided. if find other geolocation database, maxmind geolite city, more accurate country, may want geolocation ip addresses yourself, instead of delegating google maps.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -