Administrative relations of a place with openstreetmap

和自甴很熟 提交于 2019-12-11 06:21:41

问题


I did a lot of research about how to use overpass-api tried a lot of things on http://overpass-turbo.eu/ but i can't find the way to get the result i'm expecting ...

I would like with a query, to find all the relations a place has but only administrative relations (department of the place, region of the place, country) everyhting that is assimilated to an "AdministrativeArea"

Tried this with both nominatim and the overpass_api

If any of you guys have an idea Thanks !


回答1:


Just use the following query to get the result:

is_in(45.6178738,4.6703107)->.a; rel(pivot.a)[boundary=administrative]; out tags;

I used the center point 45.6178738,4.6703107 to get all relevant relations this point is contained in.

Try it in overpass turbo: http://overpass-turbo.eu/s/jQS



来源:https://stackoverflow.com/questions/40432275/administrative-relations-of-a-place-with-openstreetmap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!