[英]query for locations with overpass api
Hi I'm trying to do a query for locations (City, Street, etc.) with suggestions, just like the search boxes at google maps, openstreetmap.org or the search box on the http://overpass-turbo.eu/ site. 嗨,我正在尝试通过建议查询位置(城市,街道等),就像google maps,openstreetmap.org或http://overpass-turbo.eu/上的搜索框一样现场。
Can anyone help me out? 谁能帮我吗?
What I did so far, was this query, but I think it's the wrong approach because it's very slow and the results are bad... 到目前为止,我所做的就是该查询,但是我认为这是错误的方法,因为它非常慢并且结果很差。
[out:json];
node
["name"~"Berlin"]
["place"~"city|village|town"];
out body;
openstreetmap.org and search box at overpass turbo use Nominatim. openstreetmap.org和立交桥Turbo上的搜索框使用Nominatim。 See the wiki entry http://wiki.openstreetmap.org/wiki/Nominatim
参见Wiki条目http://wiki.openstreetmap.org/wiki/Nominatim
The following is the JS script used by overpass turbo to query Nominatim: https://github.com/tyrasd/overpass-turbo/blob/master/js/nominatim.js 以下是立交桥Turbo用于查询Nominatim的JS脚本: https : //github.com/tyrasd/overpass-turbo/blob/master/js/nominatim.js
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.