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

Getting the areas around a feature

0

I would like to get the surrounding areas around a feature. For example, I have a polygon than represents a building / house and I want to get already defined areas like the neighborhood, city / town, state, country, continent, etc.

I would like to know this to correct the big areas that I cannot get from a normal download in JOSM, and some of these areas are not correct, like the postal code is not the appropriate, the neighborhood name is wrong, etc.

asked 30 May '20, 05:05

AngocA's gravatar image

AngocA
281232433
accept rate: 0%

edited 30 May '20, 05:06

Have a look at is_in https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#Query_for_areas_.28is_in.29

However, most 'big areas' are mapped as relations. You don't need to download the whole boundary. Retrieve just one section & use the relation editor to amend tags.

(30 May '20, 16:26) DaveF

Source code available on GitHub .