简体   繁体   English

不推荐使用 Google 地点 api 后如何使用地点选择器

[英]How to use a place picker after google places api got deprecated

Earlier when I have used google places API, I was able to hover over the map using a pin and dropping it on a certain point would help me retrieve the location.早些时候,当我使用谷歌地点 API 时,我能够使用图钉将鼠标悬停在地图上并将其放在某个点上,这将有助于我检索位置。 It was very simple.这很简单。 Like how a customer would select his food delivery location or cab pickup point.就像客户如何选择他的送餐地点或出租车取货点一样。

But after the recent changes to the API, I am not able to find the map fragment that came along when implementing the places API.但是在最近对 API 进行更改之后,我无法找到实现地点 API 时出现的地图片段。

https://developers.google.com/places/android-sdk/intro https://developers.google.com/places/android-sdk/intro

I am aware of the custom and compatibility library.我知道自定义和兼容性库。 Still couldn't figure out how to include a map fragment in the places API.仍然无法弄清楚如何在地点 API 中包含地图片段。

Am I missing something or is that how it is going to be hereafter.我是不是遗漏了什么,或者以后会怎样。

If you have migrated to the new SDK, you will not be able to use the Place Picker as this can only be used using the old SDK, if you are now using Places API instead of Places SDK for Android, then you will not be able to use the Place Picker any more as it is now deprecated as of January 29, 2019 .如果您已迁移到新 SDK,您将无法使用 Place Picker,因为它只能使用旧 SDK 使用,如果您现在使用 Places API 而不是 Places SDK for Android,那么您将无法使用不再使用地点选择器,因为它现已于 2019 年 1 月 29 日弃用 Since you are expressing the interest for Place Picker after it has been deprecated, kindly fill up the form in this issue .由于您在 Place Picker 被弃用后表达了对它的兴趣,请填写本期中表格 Thank you.谢谢你。

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

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