gpt4 book ai didi

json - overpass-turbo.eu 在 map 上找到所有城市

转载 作者:行者123 更新时间:2023-12-04 10:23:27 25 4
gpt4 key购买 nike

也许有人可以帮助我使用 overpass-turbo.eu-query。

我想突出显示(中心)一个国家或地区(或当前 map )的所有城市。

网上可能有一个“简单”的例子吗?

(Google 还不是这个特殊要求的好 friend 。但我相信肯定有人已经尝试过以这种方式进行搜索。)

非常感谢你的每一个想法。

最佳答案

这是查找所有 cities, towns, villages and hamlets 的示例在国家安道尔:

[out:json][timeout:25];
// fetch area “Andorra” to search in
{{geocodeArea:Andorra}}->.searchArea;
// gather results
(
node[place~"city|town|village|hamlet"](area.searchArea);
);
// print results
out body;
>;
out skel qt;

您可以 view the result at overpass-turbo.eu单击运行按钮后。

注意:当针对较大的国家/地区运行此查询时,您可能需要增加超时值。由于性能原因,也可能无法在浏览器中呈现结果。在这种情况下,请使用导出按钮并下载原始数据。

关于json - overpass-turbo.eu 在 map 上找到所有城市,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60724687/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com