geo-ip-russia

GeoIp for Rissia based on IpGeoBase

Usage no npm install needed!

<script type="module">
  import geoIpRussia from 'https://cdn.skypack.dev/geo-ip-russia';
</script>

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