Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

ip-to-gps

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ip-to-gps

An IP address to GPS coordinates package

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

ip-to-gps

An IP to GPS coordinates package

Overview

A simple way to get GPS information from IP address.

Install

npm install -S ip-to-gps

Usage

const {getGPS} = require('ip-to-gps');

const IP = '216.58.194.78';

getGPS(IP, (err, response) => {
  if (err) throw err;
  
  console.log(response);
  
  /*** response
  
  { as: 'AS15169 Google Inc.',
  city: 'Mountain View',
  country: 'United States',
  countryCode: 'US',
  isp: 'Google',
  lat: 37.4192,
  lon: -122.0574,
  org: 'Google',
  query: '216.58.194.78',
  region: 'CA',
  regionName: 'California',
  status: 'success',
  timezone: 'America/Los_Angeles',
  zip: '94043' }

  ****/
});

Response

{ 
  as,
  city,
  country,
  countryCode,
  isp,
  lat,
  lon,
  org,
  query,
  region,
  regionName,
  status,
  timezone,
  zip
}

Keywords

ip

FAQs

Package last updated on 10 Apr 2017

Did you know?

Socket

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