简体   繁体   English

使用Google Places查找附近的位置

[英]Find nearby locations with google places

I am working with the new google places in Android API com.google.android.libraries.places:places:1.0.0 but Cannot to help the missing Place picker , because of this I have resorted to making my own place picker, I have been quite successful as seen in this picture. 我正在使用Android API com.google.android.libraries.places:places:1.0.0的新Google地方信息,但无法帮助丢失的Place picker ,因此,我不得不制作自己的地方信息选择器如这张图片所示,它取得了很大的成功。

带有地点选择器的屏幕截图

The issue I have is with the missing APIs , I would like to display nearby locations in the bottomsheet and been following this tutorial , in the tutorial they are using GeoDataClient and PlaceDetectionClient which are not part of the com.google.android.libraries.places:places:1.0.0 dependency, does anyone have an idea on the new implementation of Nearby locations with the new places APIs ? 我遇到的问题是缺少APIs ,我想在底bottomsheet显示附近的位置并遵循本教程 ,在本教程中,他们使用的是GeoDataClientPlaceDetectionClient ,它们不属于com.google.android.libraries.places:places:1.0.0依赖关系,是否有人对使用新places APIsNearby locations的新实现有任何想法?

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

I think that's your destination, using this api you can find nearbyplaces using the latlng and radius 我认为这就是您的目的地,您可以使用此api使用latlng和radius查找附近的地方

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM