如何通过SDK实现每个会话的Google地方信息自动完成功能? [英] How to implement Google Places Autocomplete per session from SDKs?

查看:134
本文介绍了如何通过SDK实现每个会话的Google地方信息自动完成功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从适用于Android和iOS应用的sdk地方实现基于会话的自动完成功能?

Is it possible to implement session based autocomplete from the places sdk for Android and iOS apps?

根据6月11日生效的新Google Maps框架定价,可以将自动完成的请求分解为基于击键/会话的请求.

According to new Google Maps framework pricing coming into effect June 11th request made to autocomplete can be broken down into keystroke/session based.

除了此参考文献.

推荐答案

会话令牌将在新版Android的Google Places SDK和iOS的Google Places SDK中提供.这些新版本在用户指南文档中宣布.

The session tokens will be available in the new versions of Google Places SDK for Android and Google Places SDK for iOS. These new versions are announced in the user guide documentation.

Google当前正在准备Android版Places SDK和iOS版Places SDK的新版本.以下部分描述了更改,并说明了更改将如何影响您.

Google is currently preparing new versions of the Places SDK for Android, and the Places SDK for iOS. The following section describes the changes and explains how they will affect you.

  • 新的Android版Places SDK将作为独立库提供,并且将不再通过Google Play服务提供;此版本将与当前的SDK向后兼容
  • 将提供新的iOS版Places SDK

值得注意的是,一些Places SDK功能将进行更新以反映Places API的整体变化,从而影响两个移动平台:

It's worth noting that several Places SDK features will be updated to reflect overall Places API changes, affecting both mobile platforms:

  • 地点详细信息"(Android,iOS)请求将具有一个新的fields参数.
  • 自动完成结算将基于会话.
  • Place Details (Android, iOS) request will have a new fields parameter.
  • Autocomplete billing will be session-based.

在接下来的几个月中,我们将分享更多详细信息,包括时间表和迁移到新的SDK版本所需的前置时间.这些新版本将替换当前的SDK版本.当前的SDK将不推荐使用,并将遵循相应的不推荐使用时间表.

In the coming months we will share more details including a timeline and appropriate lead time to migrate to the new SDK versions. These new versions will replace the current SDK versions. The current SDKs will be deprecated and will follow appropriate deprecation timelines.

来源: https://cloud.google.com/maps-platform/user-guide/product-changes/

在当前版本的Places SDK中,没有会话令牌.不幸的是,对于新版本的SDK,没有确切的ETA.希望它们将在几个月后上市.请继续关注Google公告.

In the current version of Places SDK there are no session tokens. Unfortunately, there is no exact ETA for new versions of SDKs. Hopefully, they will be available in couple of months. Stay tuned to Google announcements.

关于Android版Places SDK和iOS版Places SDK的当前版本的结算方式,我不确定.作为已淘汰的版本,它们可能是免费的.我建议与这个问题联系Google支持.

Regarding billing of current versions of Places SDK for Android and Places SDK for iOS I'm not sure. Probably they will be free of charge as deprecated versions. I would suggest reach out to Google support with this question.

您还可以检查有关会话的以下问题:

You can also check this question regarding sessions:

新版需要多长时间将API会话令牌放在最后?

我希望这可以澄清您的疑问.

I hope this clarifies your doubt.

现在可以使用新版本的Places Android SDK.您可以在以下网址了解新版本

The new version of the Places Android SDK is now available. You can read about the new version at

https://developers.google.com/places/android-sdk/client-migration

请注意,先前的SDK已弃用,并将于2019年7月29日关闭.

Note that the previous SDK is deprecated and will be shut down on July 29, 2019.

新版SDK会实现会话令牌以实现自动完成功能.

The new version of SDK implements session tokens for autocomplete.

Android版Places SDK的新版本作为静态客户端库分发.到目前为止,可通过Google Play服务使用Android的Places SDK.

The new version of the Places SDK for Android is distributed as a static client library. Until now, the Places SDK for Android has been made available through Google Play Services.

可用的兼容性库可让您以最小的努力从不建议使用的Google Play服务位置库切换到新的静态库.

A compatibility library is available, which enables you to switch from the deprecated Google Play Services Places library to the new static library with minimal effort.

有全新的方法.

返回位置详细信息的方法现在支持字段掩码.您可以使用字段掩码指定要返回的位置数据的类型.

Field masks are now supported for methods that return place details. You can use field masks to specify which types of place data to return.

用于报告错误的异常已得到改善.

The exceptions used to report errors have been improved.

自动完成功能现在支持会话令牌.

这篇关于如何通过SDK实现每个会话的Google地方信息自动完成功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆