Skip to content

thonatos/GeoIP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

2017

MT-GeoIP

Geo IP lookup using Maxmind binary databases (aka mmdb or geoip2).

Feature

  • Auto update

Usage

  • run server npm start

  • lookup http://{domain.com}?ip=61.141.145.145 GET

     {
       "ret": "ok",
       "ip": "61.141.145.145",
       "data": {
         "continent": "AS",
         "country": "CN",
         "location": {
           "accuracy_radius": 50,
           "latitude": 23.1167,
           "longitude": 113.25,
           "time_zone": "Asia/Shanghai"
         }
       }
     }
    
  • update http://{domain.com}?ip=61.141.145.145&force_update=11 GET

References

License

MIT

About

Maxmind GEO Lookup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published