我已经搜索了一段时间,我能找到的只是在我的位置附近获取特定的 POI(兴趣点),我想要的是检索附近的地点,而不管 POI 类型如何。
以下是我到目前为止在获取附近地方的信息,尽管代码只检索了附近的咖啡馆。
$(document).ready(function(){
$.ajax({
url : "http://nominatim.openstreetmap.org/search.php?q=cafe+near+%5B14.1832558%2C121.26603150000001%5D&format=json",
method : "get"
}).done(function(response){
console.log(response);
});
})
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>