[英]query for locations with overpass api
嗨,我正在尝试通过建议查询位置(城市,街道等),就像google maps,openstreetmap.org或http://overpass-turbo.eu/上的搜索框一样现场。
谁能帮我吗?
到目前为止,我所做的就是该查询,但是我认为这是错误的方法,因为它非常慢并且结果很差。
[out:json];
node
["name"~"Berlin"]
["place"~"city|village|town"];
out body;
openstreetmap.org和立交桥Turbo上的搜索框使用Nominatim。 参见Wiki条目http://wiki.openstreetmap.org/wiki/Nominatim
以下是立交桥Turbo用于查询Nominatim的JS脚本: https : //github.com/tyrasd/overpass-turbo/blob/master/js/nominatim.js
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.