https://github.com/clever/resolve-ip
service that takes in an IP address and converts it to a latitude and longitude
https://github.com/clever/resolve-ip
Last synced: about 1 year ago
JSON representation
service that takes in an IP address and converts it to a latitude and longitude
- Host: GitHub
- URL: https://github.com/clever/resolve-ip
- Owner: Clever
- Created: 2016-03-17T19:06:47.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-09-23T14:58:38.000Z (almost 2 years ago)
- Last Synced: 2025-03-17T16:53:17.864Z (over 1 year ago)
- Language: Go
- Size: 84.4 MB
- Stars: 25
- Watchers: 50
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# resolve-ip
`resolve-ip` is a service that takes in an IP address and converts it to a latitude and longitude.
It includes GeoLite data created by MaxMind, available from
[http://www.maxmind.com](http://www.maxmind.com).
## Endpoints
### `GET /healthcheck`
Returns a 200, used for load balancing healthchecks
### `GET /ip/{ip}`
If the IP address is found in the data set, it returns a 200 and a JSON body of the form:
``` json
{"lat":37.3394,"lon":-121.895}
```
If the IP address isn't found, it returns a 404.