use*_*593 1 android google-places-api
我写了一些代码,根据它们的突出性来搜索附近的地方.接下来,我想根据用户的上升距离让我的应用搜索位置.为了做到这一点,我了解到我需要使用rankby=distance但rankby不允许使用值radius- 因此以下基于半径的搜索不起作用:
nearPlaces = googlePlaces.search(
gps.getLatitude(),
gps.getLongitude(),
radius,
types
);
Run Code Online (Sandbox Code Playgroud)
我看过几篇博客和文章,人们提出类似的问题,但没有一个提供了似乎有用的答案.如果不是上述情况,我应该使用什么?
| 归档时间: |
|
| 查看次数: |
6138 次 |
| 最近记录: |