【问题标题】:Google Places Picker not working anymore, says: The Places API for iOS is not enabled. See the developer’s guideGoogle Places Picker 不再工作,说:iOS 的 Places API 未启用。请参阅开发人员指南
【发布时间】:2019-08-29 14:30:01
【问题描述】:

我收到错误:

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

地图服务的 Google 帐户已正确配置,帐单等已完成。

用于呈现的代码:

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

【问题讨论】:

    标签: swift google-maps google-places-api gmsplacepicker google-place-picker


    【解决方案1】:

    适用于 Android 和 iOS 的地点选择器已于 2019 年 1 月弃用,并于 2019 年 7 月关闭。它无法再使用。参考谷歌的deprecation notice

    注意:地点选择器(Android、iOS)自 2019 年 1 月 29 日起弃用。此功能将于 2019 年 7 月 29 日关闭, 并且在该日期之后将不再可用。

    您可能想查看 Google 问题跟踪器中 Place Picker 的公共功能请求:https://issuetracker.google.com/issues/128304760

    另请注意,如果您想使用任何 available Places services(例如 Place Autocomplete),则需要迁移到新的 iOS 版 Places SDK。按照 Google 的migration guide 中的步骤操作。

    希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 2016-10-06
      • 2015-06-05
      • 1970-01-01
      • 1970-01-01
      • 2015-09-01
      • 2015-11-08
      • 1970-01-01
      • 1970-01-01
      • 2015-06-26
      相关资源
      最近更新 更多