It's all done in Javascript so it's easy for even beginner web masters to have geolocation functionality on their web site. You can place the following code any where  in the body section of your web site.

<script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script>

<br>Country Code:
<script language="JavaScript">document.write(geoip_country_code());</script>
<br>Country Name:
<script language="JavaScript">document.write(geoip_country_name());</script>
<br>City:
<script language="JavaScript">document.write(geoip_city());</script>
<br>Region:
<script language="JavaScript">document.write(geoip_region());</script>
<br>Region Name:
<script language="JavaScript">document.write(geoip_region_name());</script>
<br>Latitude:
<script language="JavaScript">document.write(geoip_latitude());</script>
<br>Longitude:
<script language="JavaScript">document.write(geoip_longitude());</script>
<br>Postal Code:
<script language="JavaScript">document.write(geoip_postal_code());</script>

It's pretty easy as you can see. The only requirement to use this code is to either link back to Maxmind or to pay a licensing fee.


Country Code:
Country Name:
City:
Region:
Region Name:
Latitude:
Longitude:
Postal Code:

I didn't know until today that Maxmind offers a free Javascript geolocation tool that can be used on your web site to quickly and easily display the location of a visitor.


Here's an example of what it does: