Skip to content

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

License

Notifications You must be signed in to change notification settings

MeijiRestored/Location-Finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 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

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