我正在尝试为地名编码的nominatim形成一个获取请求。问题在于,在我的国家(俄罗斯),我们有很多房子/他们的数量。
示例:
https://www.openstreetmap.org/way/52433785
我尝试了不同的方法来转义/从网址编码,但没有运气。
http://nominatim.openstreetmap.org/search?q=40/49, улица Ляпидевского, Москва&format=xml&polygon=1&addressdetails=1
http://nominatim.openstreetmap.org/search?q=40\/49, улица Ляпидевского, Москва&format=xml&polygon=1&addressdetails=1
http://nominatim.openstreetmap.org/search?q=40%2F49%2C%20%D1%83%D0%BB%D0%B8%D1%86%D0%B0%20%D0%9B%D1%8F%D0%BF%D0%B8%D0%B4%D0%B5%D0%B2%D1%81%D0%BA%D0%BE%D0%B3%D0%BE%2C%20%D0%9C%D0%BE%D1%81%D0%BA%D0%B2%D0%B0&format=xml&polygon=1&addressdetails=1
所有上述要求仅返回街道,而不是房屋号码。
所以,我被卡住了。
答案 0 :(得分:0)
在https://nominatim.openstreetmap.org处搜索40/49, улица Лавочкина, Москва
会返回正确的对象并转到此网址:
https://nominatim.openstreetmap.org/search.php?q=40%2F49%2C+%D1%83%D0%BB%D0%B8%D1%86%D0%B0+%D0%9B%D0%B0%D0%B2%D0%BE%D1%87%D0%BA%D0%B8%D0%BD%D0%B0%2C+%D0%9C%D0%BE%D1%81%D0%BA%D0%B2%D0%B0&format=xml&polygon=1&addressdetails=1
请求XML格式也可以:
https://nominatim.openstreetmap.org/search.php?q=40%2F49%2C+%D1%83%D0%BB%D0%B8%D1%86%D0%B0+%D0%9B%D0%B0%D0%B2%D0%BE%D1%87%D0%BA%D0%B8%D0%BD%D0%B0%2C+%D0%9C%D0%BE%D1%81%D0%BA%D0%B2%D0%B0&polygon_geojson=1