问题描述
我是 OpenStreetMap
和 overpass-turbo
的新手,我确实编写了一个代码来从卡塔尔国家/地区提取 residential
并且它工作正常,但如果我想定义一个特定的位置基于西、东、北、南位置,就像我们在 OpenStreetMap 中所做的那样
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“highway='cycleway' in qatar”
*/
[out:json][timeout:25];
// fetch area “qatar” to search in
{{geocodeArea:qatar}}->.searchArea;
// gather results
(
// query part for: “highway=cycleway”
node["highway"="residential"](area.searchArea);
way["highway"="residential"](area.searchArea);
relation["highway"="residential"](area.searchArea);
);
// print results
out body;
>;
out skel qt;
我尝试将 {geocodearea:qatar}
更改为 {25.2552,51.5635,25.2433,51.5434}
但它不起作用
我如何定义手动位置?
解决方法
我发现这段代码对我帮助很大
[bbox:40.7163,-73.8872,40.7283,-73.8710];
(
// query part for: “amenity=cafe”
node["highway"="residential"];
way["highway"="residential"];
relation["highway"="residential"];
);
out center;