Clever/resolve-ip

Name: resolve-ip

Owner: Clever

Description: service that takes in an IP address and converts it to a latitude and longitude

Created: 2016-03-17 19:06:47.0

Updated: 2018-05-23 23:27:13.0

Pushed: 2018-05-23 23:27:12.0

Homepage: null

Size: 68570

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

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.

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:

t":37.3394,"lon":-121.895}

If the IP address isn't found, it returns a 404.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.