mediagis / nominatim-docker

100% working container for Nominatim
Creative Commons Zero v1.0 Universal
1.08k stars 442 forks source link

Add support for reverse-only imports #402

Closed saddfox closed 1 year ago

saddfox commented 1 year ago

Allow reverse-only imports by passing --reverse-only flag during import process. Controlled via env variable REVERSE_ONLY, defaults to false.

Nominatim docs

philipkozeny commented 1 year ago

Thanks for the PR. can you also please add an automated test case in our ci.yml? Thanks

saddfox commented 1 year ago

Fixed a crash with db warming when running on a reverse-only import. Somehow it was fine with my local pruned map.

I have added a test case to verify nominatim is running in reverse-only mode. In that case it returns http status code 404 and {"error":{"code":404,"message":"Reverse-only import does not support forward searching."}} so I am looking for this exact match.

philipkozeny commented 1 year ago

Thanks for the great PR!