Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for the changed schema of Nominatim's interpolation tables #635

Merged
merged 3 commits into from
Feb 10, 2022

Conversation

lonvia
Copy link
Collaborator

@lonvia lonvia commented Feb 10, 2022

The table with house number interpolations in Nominatim has changed its style replacing the interpolationtype with a simpler step column and excluding duplicate house numbers with the placex tables. See osm-search/Nominatim#2597 for details.

This PR adds support for the new style while keeping compatibility with the old style. Photon checks on startup which of the columns is available and uses the appropriate SQL for getting the data.

The change highlighted an issue we've been having for a while: the API endpoint to update Nominatim is always available, no matter if Nominatim is installed. Given that most users never want to run updates via Photon, this isn't an API that should be there unless explicitly requested. The PR adds a new command-line option -enable-update-api which needs to be added to set up the update endpoint. This is a change in behaviour for everybody who runs updates. You need to add the new option to continue to run updates.

The interpolation table now uses a step column instead of the
interpolationtype. Check at the beginning which column is available
and support both formats.
@lonvia lonvia merged commit ae86e62 into komoot:master Feb 10, 2022
@lonvia lonvia deleted the new-interpolation-structure branch February 10, 2022 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant