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

Reverse geocoding : multiple languages #856

Open
ybert opened this issue Dec 10, 2024 · 1 comment
Open

Reverse geocoding : multiple languages #856

ybert opened this issue Dec 10, 2024 · 1 comment

Comments

@ybert
Copy link
Contributor

ybert commented Dec 10, 2024

I would like to use photon to have city and country of POIs.

If I want to save in my DB the result of Photon for the reverse geocoding of my POIs latitude/longitude, I have to make a query by language to have city and country name in each language supported by my app.
If I manage 10 languages in my application I have to make 10 Photon reverse geocoding calls by POI in my application.

It would be great to have multiple languages results if asked in the query.

@lonvia
Copy link
Collaborator

lonvia commented Jan 6, 2025

We could have an option similar to name_details in Nominatim, which returns all available names. This would also allow to access the currently inaccessible alternative names.

That said, you should be aware that Photon only saves a very limited number of translations. With the current dumps, you can get a maximum of 4 translations. If you are creating your own database, you are likely better off using Nominatim directly for what you are doing.

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

No branches or pull requests

2 participants