dawarich icon indicating copy to clipboard operation
dawarich copied to clipboard

Add support for Nominatim

Open Cyberax opened this issue 11 months ago • 2 comments

This adds support for Nominatim-based reverse geocoding, along with Photon and Geofi. To use it, set the environment variables:

NOMINATIM_API_HOST - the host name of the OSM Nominatim server NOMINATIM_API_USE_HTTPS - use the HTTPS to connect NOMINATIM_API_KEY - the API key

Cyberax avatar Jan 09 '25 03:01 Cyberax

@Cyberax can you please provide an example of configuration? Photon is being used by Nominatim, so I'm not sure what are we adding here

Freika avatar Jan 09 '25 12:01 Freika

@Cyberax can you please provide an example of configuration? Photon is being used by Nominatim, so I'm not sure what are we adding here

You can set up Nominatim using these instructions: https://github.com/mediagis/nominatim-docker/tree/master/4.5

Photon is a project on top of Nominatim, it pulls out a subset of Nominatim data. Full Nominatim is much more massive (1.2TB instead of ~100Gb for Photon), but it supports incremental updates.

Edit: another reason I'm running the full Nominatim, is to support the full OpenStreetMap server. I eventually want to self-host the tile rendering.

Cyberax avatar Jan 09 '25 21:01 Cyberax

BTW, you can test Nominatim using the official OSM endpoint:

      NOMINATIM_API_HOST: nominatim.openstreetmap.org
      NOMINATIM_API_USE_HTTPS: true

Cyberax avatar Jan 21 '25 07:01 Cyberax

I'm sorry to bother, but can you look at this patch? It'd help me by allowing me to not carry it locally

Cyberax avatar Feb 02 '25 06:02 Cyberax

I'll be able to have a look when the issue with building docker image for arm64 will be resolved, it's my current focus for now

Freika avatar Feb 02 '25 16:02 Freika