Geolocation for your web site made easy with Maxmind's Javascript API
Maxmind, a leader in geolocation technology offers an easy way for web masters to add location based information to their web sites.
Country Code:
Country Name:
City:
Region:
Region Name:
Latitude:
Longitude:
Postal Code:
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.
Add comment