Socket
Socket
Sign inDemoInstall

ip-geolocation-api-jquery-sdk

Package Overview
Dependencies
0
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ip-geolocation-api-jquery-sdk

## Basic Usage Add the following script in your page: ```html <script src="https://cdn.jsdelivr.net/npm/ip-geolocation-api-jquery-sdk@1.0.0/ipgeolocation.min.js"></script> ``` ## Geolocation Lookup ```html ipgeoByApikey('YOUR_API_KEY') ipgeoByApikeyAndIp(


Version published
Weekly downloads
15
decreased by-42.31%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

IPGeolocation API JQuery SDK

Basic Usage

Add the following script in your page:

<script src="https://cdn.jsdelivr.net/npm/ip-geolocation-api-jquery-sdk@1.0.4/ipgeolocation.min.js"></script>

Geolocation Lookup

<script>
function geoResponse(data){
console.log(data);
}
</script>
geolocation(geoResponse)
geolocationByAPIkey('YOUR_API_KEY', geoResponse)

geolocationByIP('1.1.1.1', geoResponse)
geolocationByAPIkeyAndIP('YOUR_API_KEY', '1.1.1.1', geoResponse)

geolocationByFields('geo,time_zone,currency', geoResponse)
geolocationByAPIkeyAndFields('YOUR_API_KEY', 'geo,time_zone,currency', geoResponse)

geolocationByFieldsAndIP('geo,time_zone,currency', '1.1.1.1', geoResponse)
geolocationByAPIkeyFieldsAndIp('YOUR_API_KEY', 'geo,time_zone,currency', '1.1.1.1', geoResponse)

Time Zone API

<script>
function geoResponse(data){
console.log(data);
}
</script>
timezone(geoResponse)
timezoneByAPIKey('YOUR_API_KEY', geoResponse)

timezoneByIP('1.1.1.1', geoResponse)
timezoneByAPIKeyAndIP('YOUR_API_KEY', '1.1.1.1', geoResponse)

timezoneByTz('America/Los_Angeles', geoResponse)
timezoneByAPIKeyAndTz('YOUR_API_KEY', 'America/Los_Angeles', geoResponse)

// Query time zone information by latitude and longitude of the location
timezoneByLatitudeAndLongitude( '31.4816', '74.3551', geoResponse)
timezoneByAPIKeyLatitudeAndLongitude('YOUR_API_KEY', '31.4816', '74.3551', geoResponse)

Keywords

FAQs

Last updated on 23 Oct 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc