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

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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