Skip to content

Kiriyashiki/Location-Finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Location Finder

A simple Flask app which returns the country/state/city/suburb name for given coordinates, using OpenStreetMap data.

Endpoints

Documentation

Install required dependencies via pip install -r requirements.txt

Swagger

Swagger API docs are available at /apidocs/ when launching the app.

Example request

/fr/50.843388/4.349016

{
  "city": "Bruxelles",
  "country": "Belgique",
  "country_code": "BE",
  "country_flag": "🇧🇪",
  "state": "Bruxelles-Capitale",
  "suburb": "Quartier Midi-Lemonnier"
}
  • If no name was found (most often suburb), empty string is returned.
  • Country code is ISO3166-1.

Caching

This app uses Redis to cache data and thus reduce the amount of Overpass requests. You can configure Redis or turn caching off in config.py.

Credits

About

Simple flask app to return suburb/city/state/country from coordinates

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages