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

Feature Request: Return Addresses with House Numbers #869

Closed
DanRaiss opened this issue Feb 23, 2025 · 3 comments
Closed

Feature Request: Return Addresses with House Numbers #869

DanRaiss opened this issue Feb 23, 2025 · 3 comments

Comments

@DanRaiss
Copy link

DanRaiss commented Feb 23, 2025

I would like to request a feature enhancement. Specifically, I need the API to return addresses that include house numbers. This functionality is essential for my application, as it requires precise address information.​

I have reviewed the Photon documentation and found that filtering results by OpenStreetMap tags and values is possible using the osm_tag parameter. ​However, the current option not meet my needs.

Providing addresses with house numbers would significantly enhance the utility of the Photon API for applications requiring detailed address information.​

Data on enter: "Kopernikova"

localhost:2322/api?q=Kopernikova

actual result:
Kopernikova, Teplice
Kopernikova, Příbram
Kopernikova, Praha
etc..

expected result:
Kopernikova 19, Český Těšín
Kopernikova 8, Hlohovec
Kopernikova 7, Praha
etc..

I appreciate your consideration of this request and look forward to your response.

@mtmail
Copy link
Contributor

mtmail commented Feb 23, 2025

The actual results are relevant to the query. Why do you think is " Kopernikova 7, Praha" more precise than " Kopernikova, Praha" when somebody was searching only for the street name?

@DanRaiss
Copy link
Author

DanRaiss commented Feb 23, 2025

@mtmail My application provides a list of address suggestions for the searched streets. In this case, its complicated for me to use photon.

If there is a function search as type, then why there is not config for suggesting all results (street + house numbers)?

@lonvia
Copy link
Collaborator

lonvia commented Feb 26, 2025

Such a feature is not possible with the current API because it has only a single search endpoint for searching and suggestions. Returning an address, when only a street name was typed in, would simply be wrong for most search use cases.

Something like this is more likely to happen when we get a real "suggestion" endpoint in a future v2 API. But even then it would be rather restricted. There are dozens of streets named Kopernikova and hundreds of address points. Returning all of them would not be very meaningful. So, housenumbers might be suggested, when the input is down to 'Kopernikova, Praha' but not in the general case of only having the street name. That said, API v2 is far away in the future.

It really sounds like you are not really looking for a geocoder (as in "searching") but for a gazetteer. You need a database that gives you a list of streets for a given city, then housenumbers for a given city/street combination etc. That is an interesting application but out of scope for Photon, I'm afraid.

@lonvia lonvia closed this as not planned Won't fix, can't repro, duplicate, stale Feb 26, 2025
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

3 participants