Note: This API is no longer publicly hosted. You're welcome to run it yourself.
A simple API to get an IP address approximative lat/lon geographic coordinates programmatically. Written in Rust.
warning: this repository makes use of Git LFS to keep track of the geoip database file.
Request:
curl http://<endpoint>/125.45.67.18
Response:
{
"api_version": "3.0.0",
"geo": {
"latitude": 34.6836,
"longitude": 113.5325,
"time_zone": "Asia/Shanghai"
},
"ip": "125.45.67.18",
"time": 1544969827
}