Changes overview:
Free databases: http://dev.maxmind.com/geoip/geoip2/geolite2/
Code samples:
// maxmind@0.6 var maxmind = require('maxmind'); maxmind.init('/path/to/GeoLiteCity.dat'); maxmind.init('/path/to/GeoIPASNum.dat'); maxmind.init('/path/to/GeoISP.dat'); var org = maxmind.getIsp('66.6.44.4'); var org = maxmind.getAsn('66.6.44.4'); var location = maxmind.getLocation('66.6.44.4');
// maxmind@1 var maxmind = require('maxmind'); var cityLookup = maxmind.open('/path/to/GeoLiteCity.mmdb'); var asnLookup = maxmind.open('/path/to/GeoIPASNum.mmdb'); var ispLookup = maxmind.open('/path/to/GeoISP.mmdb'); var org = ispLookup.get('66.6.44.4'); var org = asnLookup.get('66.6.44.4'); var location = cityLookup.get('66.6.44.4');
There was an error while loading. Please reload this page.