【发布时间】:2021-01-06 19:56:19
【问题描述】:
我正在努力构建一个具有以下结构的迷你数据库集
{countryId, governorateId, cityId}
这个想法是: 我需要找到埃及的所有 admin_level=4,然后对于每个结果,获取城市|郊区|城镇
示例: 开罗:['纳斯尔城','第五卫星',......等等]
开罗 = 省,“纳斯尔市” = 郊区
到目前为止我有什么:
[out:csv(::id, 'place', 'name:ar', 'name:en')][timeout:25];
// fetch area “Egypt” to search in
{{geocodeArea:Egypt}}->.searchArea;
// gather results
(
node[place~"city|town|suburb"](area.searchArea);
);
// print results
out body;
>;
out skel qt;
这给了我列表,但没有关系,所以我不知道哪个suburb在哪个city里面
【问题讨论】:
标签: openstreetmap overpass-api