Google Places Picker不再起作用,他说:iOS的Places API未启用.请参阅开发者指南 [英] Google Places Picker not working anymore, says: The Places API for iOS is not enabled. See the developer’s guide

查看:146
本文介绍了Google Places Picker不再起作用,他说:iOS的Places API未启用.请参阅开发者指南的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了错误:

错误:操作无法完成.未启用iOS版Places API.请参阅开发人员指南( https://developers.google.com/places/ios-api/start ),了解如何为iOS启用Google Places API.

Error: The operation couldn’t be completed. The Places API for iOS is not enabled. See the developer's guide (https://developers.google.com/places/ios-api/start) for how to enable the Google Places API for iOS.

用于地图服务的Google帐户已正确配置,结算等已完成.

Google Account for map services is configured properly, billings etc. already done.

用于显示的代码:

    let autocompleteController = GMSAutocompleteViewController()
    autocompleteController.delegate = self
    present(autocompleteController, animated: true, completion: nil)

推荐答案

Android和iOS的位置选择器已于2019年1月弃用,并于2019年7月关闭.无法再使用.请参阅Google的弃用通知:

The Place Picker for Android and iOS was deprecated in January 2019 and turned off in July 2019. It can't be used anymore. Refer to Google's deprecation notice:

通知:自2019年1月29日起不推荐使用位置选择器"(Android,iOS).此功能将于2019年7月29日关闭, 并且在该日期之后将不再可用.

Notice: The Place Picker (Android, iOS) is deprecated as of January 29, 2019. This feature will be turned off on July 29, 2019, and will no longer be available after that date.

您可能希望在Google的问题跟踪器中查看有关位置选择器"的公共功能请求: https ://issuetracker.google.com/issues/128304760

You may want to have a look at the public feature request for Place Picker in Google's Issue Tracker: https://issuetracker.google.com/issues/128304760

还要注意,如果要使用任何可用的位置信息服务(例如,位置自动完成功能).请遵循Google 迁移指南中的步骤.

Also note that there's a new Places SDK for iOS that you need to migrate to if you want to use any of the available Places services (e.g. Place Autocomplete). Follow the steps in Google's migration guide.

希望这会有所帮助.

这篇关于Google Places Picker不再起作用,他说:iOS的Places API未启用.请参阅开发者指南的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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