Get Lat/Lon from an IP Address
The Locate IP service has been revived from the old SideBit site. The service looks up location details for a given IP address. Details include the city, state, country and Lat/lon. A map is also generated with a marker showing the location. Tryout the new version here.
This service is based on NetGeo from CAIDA. NetGeo is a database and collection of Perl scripts used to map IP addresses and AS numbers to geographical locations. CAIDA developed this system for use in network visualization/analysis tools. It is available for use on the web, though subject to rate limited to 30 lookups in 30 seconds.
NetGeo is not being actively maintained and can generate incorrect results, especial for recently allocated or re-assigned IP addresses. For more information visit the CAIDA’s NetGeo About page.
This page has PHP code that works with NetGeo API to do lookups. The IP Address should default to your IP Address. You can enter another IP address or a host name like www.sidebit.com. When you click on the check button the IP address will be looked up by NetGeo.
A map is generated from the US Census Tiger map server with a pointer at the given Lat/Lon. Today this might not seem impressive but when the code was originally written, in 2001, there were no Google maps.
Should I do a new version of this code to use Google maps?
Stumble it!







February 4th, 2007 at 5:48 am
If you go to http://www.ipgp.net you will get the exact location with google maps engine.
June 8th, 2007 at 10:15 am
cool