argo-marketplace / RadRoads

Using OSMnx to find Rad Streets in any city! - https://medium.com/a-r-g-o/rad-roads-using-osmnx-68fc8b15f046
MIT License
11 stars 4 forks source link

Why Nominatim searches show points and not polygons? #6

Closed jazzzchan closed 6 years ago

jazzzchan commented 6 years ago

How to submit an issue?

vr00n commented 6 years ago

When I search for Beijing in Nominatim, i get 2 results

image

  1. Beijing (city) and represented as an OSM node: http://www.openstreetmap.org/node/25248662

  2. Beijing (State) and represented as an OSM relation: http://www.openstreetmap.org/relation/912940

This is important to understand as it involves the Open Street Map Data Model and is explained in detail here:

@jazzzchan @ywnch @nnhoucheng please ensure you all read these links and lets discuss on next call (OPS, add to agenda for Jan-6 meeting)

vr00n commented 6 years ago

In the case for East Village, there is only an OSM node and no OSM relation. http://nominatim.openstreetmap.org/search.php?q=east+village+new+york&polygon_geojson=1&viewbox=

....that is because no one has actually created an OSM relation entry for NYC neighborhoods! (great future project!) and that is why you do not get a polygon.

However, someone has created an OSM relation entry for Manhattan Community Board 3.

So in OSMnx, if you enter "Manhattan Community Board 3", you will get a polygon (please test this @jazzzchan ).

jazzzchan commented 6 years ago

a relationship needs to be created in order for OSMnx to plot the graph.