jqIpLocation – jQuery IP Location Plugin


jqIpLocation is a jQuery Plugin that returns the location of an IP address in JSON format. You can get country name, country code, city name, region name, latitude, longitude and zip code 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 : '208.80.152.201',
    	success: function(location) {	          
            // location.country;
            // location.countryCode;
            // location.city;
            ...
           }
       });
    

Options

Name Default Required Description
ip None Yes IP Address

Properties

NameDescription
location.countryCountry Name
location.countryCodeCountry Code
location.cityCity Name
location.regionNameRegion Name
location.latLatitude
location.lonLongitude
location.zipZip Code

Share

 

Comments

Author

jqIpLocation is created by Engin KIZIL

» jquery-plugins.net   » enginkizil.com

  • Advertisement Advertise with us!