Google Maps Geo-Location Example

The above map should show the town you are in based on your IP address. This is done using the free GeoIPLite database from MaxMind. You will need to replace the key in index.php near http://maps.google.com/maps?file=api&v=2&key=abcdefg&sensor=true with your own key obtained from Google Maps API.

Detected IP: 38.107.179.241 )
This example was prepared by Casey Eyring, www.caseyeyring.com.

Note: If your IP address is localhost (127.0.0.1), it will show Mountainview, CA (Google's town). If it cannot find your IP address, a world map will be displayed. Both of these parameters are configurable.