1.0.6 • Published 7 years ago
sypex_geo v1.0.6
Unofficial Sypex Geo API bindings for Node.JS.
This package works only with SxGeoCity_utf8 version 2.2
Setup
npm i --save sypex_geo
Usage
const SxGeo = require('sypex_geo');
let sxgeo = new SxGeo('/full/path/to/the/SypexGeoCity.dat');
let location = sxgeo.get_geo('46.148.53.103');
console.log(JSON.stringify(location));