README
GeoIp for Russia (based on IpGeoBase data)
Install
npm i geo-ip-russia
Usage
var GeoIp = require ('geo-ip-russia');
GeoIp(Cidr, Citie, Ip, function(err, city) {
console.log(city)
});
where:
Cidr = Mongo Cidr model based on Cidr's from IpGeoBase
Citie = Mongo Citie model based on Cidies's from IpGeoBase
Ip = User Ip
return city object:
{
_id,
id,
city,
region,
country,
latitude,
longitude
}
license
WTF