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

Get city boundaries

0

I'm able to get city boundaries in overpass turbo But I can't translate this query overpassapi. Any ideas? Thanks.

asked 16 Nov '17, 07:41

altopalo's gravatar image

altopalo
5381013
accept rate: 0%

edited 16 Nov '17, 07:50

1

The export button allows to convert it to a regular Overpass API query.

(16 Nov '17, 09:29) scai ♦

Tn'x scai, Tried that but it's make a query with area with the area code, not the name of the city as in the editor.

(16 Nov '17, 09:35) altopalo
1

Correct, because the geocoding task is done by overpass turbo and is not supported by Overpass API.

(16 Nov '17, 10:58) scai ♦

One Answer:

0

Hi there, I want to know how to get city boundaries on that website? I'm allergic to code. I want to draw the district or County level boundaries of those cities: Shanghai, Suzhou, Wuxi, Changzhou, Huzhou, Jiaxing, Hangzhou, Shaoxing and Ningbo. Please help.

answered 27 Apr '20, 02:48

CliffHU's gravatar image

CliffHU
16224
accept rate: 0%

1

@CLiffHU, please do not post your question multiple times under other questions. Create a new question.

(27 Apr '20, 04:38) escada

Source code available on GitHub .