onramper / fast-geoip

A faster & low-memory replacement for geoip-lite, a node library that maps IPs to geographical information
https://www.npmjs.com/package/fast-geoip
MIT License
235 stars 30 forks source link

Lookups not working correctly #7

Closed chiqomar closed 2 years ago

chiqomar commented 2 years ago

We were looking at replacing our version of geoip-lite with this library, but realized that the results returned from this library are incorrect; using the example IP (207.97.227.239) in the Readme results in the following:

{
  range: [ 3479289856, 3479306240 ],
  country: 'US',
  region: '',
  eu: '0',
  timezone: 'America/Chicago',
  city: '',
  ll: [ 37.751, -97.822 ],
  metro: 0,
  area: 1000
}

Tried this locally, as well as in the RunKit instance with the same result.

tmoubarak commented 2 years ago

same here

gugu commented 2 years ago

I don't think it is a bug - geoip-lite updates database and IP address can change location over time

chiqomar commented 2 years ago

Right, but, you should probably update your readme to match, or use another IP, otherwise trying the example doesn't work. In any case, no one's active on this anyway. Gonna close the issue.