jQuery IP Location Plugin jqIpLocation

jqIpLocation is a jQuery Plugin that returns the location of an IP address in JSON format. You can get country, country code, city name, region name, latitude and longitude information about IP address location.

Usage

1- 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>

2- Add the Javascript that will returns you IP Location information in JSON format

    $.jqIpLocation({
    ip : '213.243.4.20',
	success: function(location) {			          
			alert(location.countryName);
			alert(location.countryCode);
			...
       }
   });

Properties

location.countryName
: Country Name
location.countryCode
: Country Code
location.cityName
: City Name
location.regionName
: Region Name
location.latitude
: Latitude
location.longitude
: Longitude

Options

ip
: Ip adress (required)


Author: Engin KIZIL  Facebook  Twitter