Option to search for "city" in addr:city and addr:district at once #3623
bogatkaj
started this conversation in
Geocoding around the world
Replies: 1 comment 2 replies
-
If you have user-supplied input that is not supposed to be a strict address, I would advise against using form input and structured search. Just use a free-form field and people will likely just type 'nordkampen 11' in this case, which will work. That said, 'nordkampen 11, nordkampen' really should get results as well. And if that works, the structured search would work as well. We already had the discussion in #2496, which I've now reopened. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I have the following problem:
I'm programming on a tool for disaster relief management at scene for the german speaking countries.
For Germany I'm having issues with an address in a smaller town.
The name of the town is "Nordkampen", which belongs to the city of Walsrode (and therefore the correct addr is Nordkampen 10, 29664 Walsrode), but is a so called "Ortschaft".
So in Germany you would rather say someone is from Nordkampen instead of from the district of Nordkampen in Walsrode.
So if someone searches for the address and types in Nordkampen as city, Nominatim doesn't returns a result.
Is there any option to set, to also search for the district?
Example urls:
City = Nordkampen:
http://nominatim.openstreetmap.org/search?street=Nordkampen%2011&city=Nordkampen&country=Deutschland&addressdetails=1&accept-language=de-DE&countrycodes=de&format=geocodejson&limit=1&layer=address&dedup=1
City = Walsrode:
http://nominatim.openstreetmap.org/search?street=Nordkampen%2011&city=Walsrode&country=Deutschland&addressdetails=1&accept-language=de-DE&countrycodes=de&format=geocodejson&limit=1&layer=address&dedup=1
Beta Was this translation helpful? Give feedback.
All reactions