NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hello,

I am not getting city always in API response when i search for a address.

Here is the address: Bahnhofstrasse 1 8001 Zu

Here is URL which i am using for search address:

https://nominatim.openstreetmap.org/search?q=Bahnhofstrasse%201%208001%20Zu&format=json&polygon=1& addressdetails=1&limit=6&countrycodes=CH&accept-language=de

alt text

Can you please help me on this why i am not getting city with this address?

Thanks Siyaram

asked 11 Jul '22, 07:02

Siyaram%20Test's gravatar image

Siyaram Test
11112
accept rate: 0%

1

What city name would you expect for this location? The results give you the name of the village (which may be the closest thing to a "postal city" here, it is used in the addr:city tags). The results also include various levels of administrative division. It all looks reasonable for a rural area far from a city. I'm not sure anything is missing.

(11 Jul '22, 09:07) alan_gr

Nominatim does not offer autocomplete or autosuggest. So it does not expand your search of "Zu" to "Zurich".

If you need an autosuggest/autocomplete function, you'll have to look to other geocoders, e.g. photon or pelias.

Example:

https://photon.komoot.io/api/?q=Bahnhofstrasse%201%208001%20Zu

permanent link

answered 11 Jul '22, 09:59

Spiekerooger's gravatar image

Spiekerooger
3.1k22356
accept rate: 16%

edited 11 Jul '22, 09:59

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×107

question asked: 11 Jul '22, 07:02

question was seen: 1,059 times

last updated: 11 Jul '22, 09:59

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum