views:

33

answers:

2

hi,

how to create a users location map based on the ip address. i collect the ip address of users coming to the site and i want to show a map with their location based on the ipaddress that I collected. Is there any map service which is available to use, i am fine if we need to pay anything to have more queries. thanks.

A: 

See here:

http://code.google.com/apis/maps/documentation/javascript/basics.html#DetectingUserLocation

Not really a maps question since you use the map only to plot what you've detected by other means.

Marcelo
hi, thanks, i checked google maps api but what i am looking to do this - I record users info(ip, name etc) when they log on to the site. i want to show a map in one of the page on my site say "current users" and then here i want to show a map with markers for all users on that date and time. hope i am clear this time.
gan
The paragraph I linked to shows you how to do it with the W3C navigator.geolocation property, which is an alternative to paying for an IP to location service.
Marcelo
+2  A: 

There are services that offer IP-to-location databases, for example MaxMind. You will need to keep these databases updated, since IPs change over time. The free versions are of slightly lower accuracy and updated less often. Identifying locations by IP is a low-accuracy affair though anyway, so it might be enough for your purpose. You then just need to output the results on a map, which you can do using, for example, the Google Maps API.

deceze