IP 2 Geo Location
Install
$ npm install ip2geolocation
Usage Example
; ;
Data Providers
extremeIpLookUp
(see http://extreme-ip-lookup.com)freeGeoIp
(see https://freegeoip.app)ipApi
(see http://ip-api.com)ipApiCo
(see https://ipapi.co)ipInfo
(see https://ipinfo.io)
Every data provider uses its own data format. To use an unified data format (see a sample below)
use the parseData
method.