Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/enginkizil/jqiplocation
- Owner: enginkizil
- Created: 2013-02-05T21:22:35.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-08-21T20:09:25.000Z (about 7 years ago)
- Last Synced: 2023-04-08T05:23:51.298Z (over 1 year ago)
- Topics: city, country, ip, ip2location, jquery, jquery-plugin, json, latitude, location, longtitude
- Language: HTML
- Homepage: http://jquery-plugins.net/jqIpLocation/jqIpLocation.html
- Size: 41 KB
- Stars: 19
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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)