Option to search for "city" in addr:city and addr:district at once #3623
Replies: 2 comments 5 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.
-
Sorry for the late reply... I found a way to may make my problem with this topic more clear: If I search for Nordkampen 10, 29664 Walsrode or Zollstraße 10, Hordorf ( the one in Cremlingen) I get the right coordinates, but if I turn on addressdetails in the query, I don't get a valid address to use, since these hamlets don't give back a valid city or town and I can't clearly determine when to use the district based on the return values or the address the user entered (needed in our case for address correction) Maybe I'm missing something here, but some help would be welcome. Have a nice weekend! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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