Skip to content

Geocoding

Mapping addresses/names to geo coordinates and vice versa.

Provider

Nominatim

Python library

The Nominatim library is used for accessing a local Nominatim database. It is not meant to be used against web services of Nominatim like the one on https://nominatim.openstreetmap.org. If you need a Python library to access these web services, have a look at GeoPy.

GeoNames

User-editable geographical database available and accessible through various web services, under a Creative Commons attribution license"

geoapify

Example reverse geocoding API call:

curl --location --request GET \
"https://api.geoapify.com/v1/geocode/reverse?lat=${LAT}&lon=${LON}&format=json&apiKey=$REVERSE_GEOCODING_API_KEY" | jq .

Apps

geoClue

  • Gitlab
  • Wiki
  • "Geoclue was also used for (reverse-)geocoding but that functionality has been dropped in favour of the geocode-glib library."
  • Configuration file: /etc/geoclue/geoclue.conf

Install (already installed by default Manjaro):

sudo pacman -S geoclue

Test demo (decrease timeout, country-level accuracy):

/usr/lib/geoclue-2.0/demos/where-am-i --timeout=5 --accuracy-level=1