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

Handle house numbers in GeocoderNominatim #424

Open
selphiron opened this issue Jun 23, 2022 · 2 comments
Open

Handle house numbers in GeocoderNominatim #424

selphiron opened this issue Jun 23, 2022 · 2 comments

Comments

@selphiron
Copy link

I can search for streetname + house number but the return value of GeocoderNominatim.getFromLocationName does not contain information about the house number, although the latitude and longitude shows at a building with the house number I searched for.
For example, when I search for "Einsteinufer 17", it suggests "Einsteinufer, 10587, Germany", which is street name, postal code, country name. But the marker is positioned at exactly Einsteinufer 17.

@MKergall
Copy link
Owner

Searching "Einsteinufer 17", the house number is store in Address.mSubThoroughfare = 17
Tell me if you think this is not appropriate (I'm not a specialist about postal address normalization...)

And the mExtras bundle contains a display_name field, whose value is "Caféteria EN, 17, Einsteinufer, Charlottenburg, Charlottenburg-Wilmersdorf, Berlin, 10587, Allemagne"

I usually use this "display_name" extra, as building a readable address from Address object is really a nightmare.

@selphiron
Copy link
Author

Indeed, that works. I was looking in addressLines, assuming it contained all relevant information. Thanks!
"display_name" works a little bit weird though. When you search for "Tempelhofer Damm 148", there are three entries. Pizza, Humana and Friseur by Apo. However, no normal address for Tempelhofer Damm 148. This happens only with some addresses.

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