Include the Javascript resources into you pages <head>
section
<head> <script type="text/javascript" src="jquery-1.6.3.min.js"></script> <script type="text/javascript" src="jqIpLocation.js"></script> </head>
Add the Javascript that will returns you IP Location information in JSON format
$.jqIpLocation({ ip : '208.80.152.201', success: function(location) { // location.country; // location.countryCode; // location.city; ... } });
Name | Default | Required | Description |
---|---|---|---|
ip | None | Yes | IP Address |
Name | Description |
---|---|
location.country_name | Country Name |
location.country_code | Country Code |
location.city | City Name |
location.region_name | Region Name |
location.latitude | Latitude |
location.longitude | Longitude |
location.zip | Zip Code |