我想取得一些有关道路、交通灯和灯柱的统计数字。有没有办法立即获得深圳(中国)城市的这些统计数据?
其次:如何导出特定城市(即深圳)的路网,包括traffic_signals和street_lamps?
我已经使用Overpass API尝试过这段代码
[out:csv(::id,::lat,::lon)][timeout:900];
// gather results
(
node["highway"="street_lamp"](22.6242,113.6371,23.0628,114.5462);
);
// print results
out body;当应用于伦敦坐标(51.3941,-0.2774,51.56,0.0879)时,该查询不检索深圳(中国) coordinates(22.6242,113.6371,23.0628,114.5462).However,的任何结果,它工作并检索。
此外,当我执行像查询PoI这样的简单查询时:
[out:json][timeout:10];
// gather results
(
node["leisure"](around: 200,22.5,113.9936701,22.6740047,113.9935278);
);
out body;虽然在深圳(中国),它也可以工作。在中国城市(例如深圳),有没有办法检索标记为'street_lamp‘和'traffic_sign’的节点?
发布于 2021-01-03 18:57:46
要在边界内查询,请使用城市边界关系的id,然后使用map_to_area,然后使用(area)过滤器进行查询:
rel(3464353);
map_to_area;
node(area)["highway"="street_lamp"];
out;https://stackoverflow.com/questions/65457687
复制相似问题