我想获取用户位置附近所有餐馆的列表 . 对于一些坐标我得到了结果但是对于某些位置我什么都没得到 . 例如:
没有结果:https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=77.04744149999999,28.5080526&radius=50000&type=restaurant=&key=%20AIzaSyBwJsemNhTY8_HZDc3wAfhUrY0xrLm6EWY
注意:上面的坐标是古尔冈23 A Loaction
获得结果:https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=41.6639,-83.5552&radius=50000&type=restaurant=&key=%20AIzaSyBwJsemNhTY8_HZDc3wAfhUrY0xrLm6EWY
任何人都可以告诉我这里和我一起出现了什么问题 .
我能想到 two main reasons :
1.您使用的坐标无效 .
要么
2.附近根本没有在Google Place数据库中注册的餐馆 .
除此之外,我没有看到你使用API的方式有任何错误(顺便说一下,我得到相同的结果) .
1 回答
我能想到 two main reasons :
1.您使用的坐标无效 .
要么
2.附近根本没有在Google Place数据库中注册的餐馆 .
除此之外,我没有看到你使用API的方式有任何错误(顺便说一下,我得到相同的结果) .