Skip to content

Service for determining the nearest city by latitude and longitude

Notifications You must be signed in to change notification settings

YaroslavGaponov/whereami

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Yaroslav Gaponov
Oct 2, 2024
0fc2a2b · Oct 2, 2024

History

14 Commits
Sep 15, 2024
Sep 9, 2024
Oct 2, 2024
Oct 2, 2024
Sep 9, 2024
Sep 12, 2024
Sep 13, 2024
Sep 13, 2024
Sep 12, 2024
Sep 9, 2024

Repository files navigation

whereami

Service for determining the nearest city by latitude and longitude

Demo

Build docker image

docker build -t YaroslavGaponov/whereamid:latest .

Run docker image

docker run -p 8080:8080 YaroslavGaponov/whereamid:latest

Test

Request

curl 'http://localhost:8080/whereami?lat=44.060522&lng=15.345933'

Response

{"id":"1191160875","lat":44.1194,"lng":15.2319,"distance":11.21630046370274,"took":1058629,"city":"Zadar","country":"Croatia"}

About

Service for determining the nearest city by latitude and longitude

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published