使用谷歌地点查找附近的位置

问题描述 投票:0回答:1

我正在使用Android API com.google.android.libraries.places:places:1.0.0中的新谷歌地方,但不能帮助失踪的Place picker,因为我已经使用我自己的地方选择器,我已经相当成功,如图所示。

screenshot with place picker

我的问题是缺少APIs,我想在bottomsheet显示附近的位置,并一直关注this tutorial,在教程中他们使用GeoDataClientPlaceDetectionClient不是com.google.android.libraries.places:places:1.0.0依赖的一部分,有没有人有一个想法用新的Nearby locations新实施places APIs

android google-places google-nearby
1个回答
0
投票

https://developers.google.com/places/web-service/search#PlaceSearchRequests

我认为这是你的目的地,使用这个api你可以使用latlng和radius找到附近的地方

© www.soinside.com 2019 - 2024. All rights reserved.