Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/enginkizil/jqiplocation

jqIpLocation – jQuery Plugin that returns the location of an IP address in JSON format
https://github.com/enginkizil/jqiplocation

city country ip ip2location jquery jquery-plugin json latitude location longtitude

Last synced: about 2 hours ago
JSON representation

jqIpLocation – jQuery Plugin that returns the location of an IP address in JSON format

Awesome Lists containing this project

README

        

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, country code, city name, region name, latitude, longitude and zip code information about IP address location.

[Plugin Homepage](http://jquery-plugins.net/jqIpLocation/jqIpLocation.html)

[Demo](http://jquery-plugins.net/jqIpLocation/jqIpLocation_demo.html)

## Usage
1- Include the Javascript resources into you pages


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

- **ip** : IP Address that you want to get location info. It's required

## JSON Result

- **location.country** : Country Name
- **location.countryCode** : Country Code
- **location.city** : City Name
- **location.regionName** : Region Name
- **location.lat** : Latitude
- **location.lon** : Longitude
- **location.zip** : Zip Code

## Demo

[Plugin Homepage](http://jquery-plugins.net/jqIpLocation/jqIpLocation.html)

[Demo](http://jquery-plugins.net/jqIpLocation/jqIpLocation_demo.html)