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

Search streets based on other connected streets for geoconding in Nominatim #1224

Closed
NasserTahani opened this issue Nov 4, 2018 · 1 comment

Comments

@NasserTahani
Copy link

NasserTahani commented Nov 4, 2018

We installed Nominatim and used it for searching POIs in a local server. I've explored the address format in Nominatim which is in the following order:

  • road
  • neighborhood
  • suburb
  • city
  • boundary
  • county
  • province
  • country

In this order, I can find sample address like "تهران، حکیمیه، بلوار بهار" and "تهران، حکیمیه، نشوه" but when I want to search street called "نشوه" which is connected to street "بلوار بهار" like this "تهران، حکیمیه، بلوار بهار، نشوه" Nominatim can't find the street and returns no result.

I've used 'addr:street' key for the second street and set the name of the first street as its value. But no success obtained.

<way id="4907958" version="1" timestamp="2018-10-09T11:48:38Z" changeset="0">
        <nd ref="5968973949"/>
        <nd ref="5968973950"/>
        <tag k="highway" v="living_street"/>
        <tag k="maxspeed" v="20"/>
        <tag k="name" v="نشوه"/>
        <tag k="addr:street" v="بلوار بهار"/>
</way>

Also, I used AssociatedStreet to create a new relation between two streets.

<relation id="-659328632">
      <tag k="type" v="associatedStreet" /> 
      <member type="way" ref="4907958" role="street" />
      <member type="way" ref="136605953" role="street" />
</relation>

This is the link to gis.stackexchange question which you can see the screeshot of the streets on the map.

@NasserTahani NasserTahani changed the title Search streets with other connected streets for geoconding in Nominatim Search streets based on other connected streets for geoconding in Nominatim Nov 4, 2018
@mtmail
Copy link
Collaborator

mtmail commented Nov 4, 2018

Nominatim can't handle intersection searches. It will only look for one street, adding another will actually make a result less likely to be found. New York's block addresses are a good example.

"6th ave, 23rd str, new york, usa" yields no results, while "6th ave, new york, usa" and "23rd str, new york, usa" individually do.

For "6th ave" https://nominatim.openstreetmap.org/search.php?q=6th+ave%2C+new+york%2C+usa you'll see Nominatim only returns a single street section (a way in OpenStreetMap), not the full street. It doesn't look at associatedStreet (and would be too much to create a relation for every intersection).

Looking up each connected street can get (data query time) expensive unless those are pre-computed.

Closing as duplicate of #123

@mtmail mtmail closed this as completed Nov 4, 2018
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