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
- Host: GitHub
- URL: https://github.com/julianfbeck/iplocation-service
- Owner: julianfbeck
- Created: 2023-01-01T21:29:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-03T10:55:44.000Z (over 2 years ago)
- Last Synced: 2025-02-06T05:33:09.243Z (4 months ago)
- Language: Go
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```