An open API service indexing awesome lists of open source software.

https://github.com/julianfbeck/iplocation-service

simple go service to return the users location and ip address using data from db-ip.com
https://github.com/julianfbeck/iplocation-service

Last synced: about 2 months ago
JSON representation

simple go service to return the users location and ip address using data from db-ip.com

Awesome Lists containing this project

README

        

# iplocation-service
A simple service to get the location and external IP address of a client. The application downloads the latest GEO IP database from
db-ip.com and uses it to resolve the location of a client. Every Monday the database is updated automatically.
## Example Response
```json
{
"city_en":"Frankfurt am Main",
"country_en":"Germany",
"country_de":"Deutschland",
"country_code":"DE",
"continent_en":"Europe",
"continent_de":"Europa",
"longitude":"18.682130",
"latitude":"53.31313",
"subdivision":"Hesse",
"ip":"222.229.169.30"
}
```

## Usage with Docker
The docker container is available on [Docker Hub](https://hub.docker.com/r/kickbeak/iplocation-service/).

### Run the container
```bash
docker run -d -p 3000:3000 kickbeak/iplocation-service
```