This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to get the hierarchical tree structure for a city, prefereably using OSM on AWS Athena?

0

For a particular city, is it possible to get a tree structure?

Eg:

                New York City
                     |
---------------------------------------------------------------
|                    |                     |                   |

Manhattan...........Brooklyn................Bronx .............Queens

|

NoHo

|

Washington Square Park

asked 20 Jun '19, 09:59

chiiz's gravatar image

chiiz
11112
accept rate: 0%

1

OSM doesn't have a clean hierarchy of settlements (largely because the real world doesn't). I'd suggest you spend some time exploring what OSM data there is in the area you're interested in, and how each object is tagged.

(20 Jun '19, 14:09) Richard ♦

Hi Richard, Thank you for your comment. How do I start with something simple. For example get a list of coordinates for all the city districts in say, Jeddah, Saudi Arabia.

(23 Jun '19, 07:00) chiiz

Source code available on GitHub .