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

Add the capability to define custom formatting functions for API output #3515

Merged
merged 6 commits into from
Aug 15, 2024

Conversation

lonvia
Copy link
Member

@lonvia lonvia commented Aug 14, 2024

The default output formats of the Nominatim server API only expose a subset of the data that Nominatim has available for a result. Sometimes it can be useful to expose additional information (e.g as requested in #1699) or to do something special with the address information (e.g. localise it per country #213 or #2522). This change allows to install custom formatting functions for an instance in the project directory.

Please see the included documentation for details and refer to the code in src/nominatim_api/v1/format.py for examples on how to write formatting functions.

@lonvia lonvia merged commit d7cf81c into osm-search:master Aug 15, 2024
11 checks passed
@lonvia lonvia deleted the custom-result-formatting branch August 15, 2024 07:26
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