
GeoIP JavaScript is a service offered by MaxMind to return
the Country, Region, City, Latitude, and Longitude for your web visitors.
It uses Javascript and is very easy to program, works on both static
and dynamically served web pages.
If you only need to display the country, please use our GeoIP Country Javascript
service.
In order to use this Javascript on your website, you must provide a
link back to the www.maxmind.com website.
Example:
Country Code:
Country Name:
City:
Region:
Latitude:
Longitude:
Source code:
<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>Latitude:
<script language="JavaScript">document.write(geoip_latitude());</script>
<br>Longitude:
<script language="JavaScript">document.write(geoip_longitude());</script>
Mailing List:
If you use the code on your website, please sign up for our Javascript mailing list.
This is a low-volume mailing list with announcements regarding any new features
or API changes.
The uptime for the Javascript service is about 99.95%.
|