iOS:Google Places Pod - 将 Pod 版本升级到 3.1.0 后达到使用限制错误

iOS: Google Places Pod - reached usage limit error after upgrade pod version to 3.1.0

Google 建议将 iOS Google Places Pod 从 2.7.0 升级到 3.1.0

Version 2.7.0 of the Places SDK for iOS is deprecated as of January 29, 2019, and will be turned off on July 29, 2019

我升级了我的 pod,现在 运行 遇到了以下问题。

The operation couldn’t be completed. Operation failed due to exceeding the quota usage limit. See the usage limits guide (https://developers.google.com/places/ios-sdk/usage) for information on usage limits and how to request a higher limit.

当我再次将版本降级到 2.7.0 时,使用相同的 API 密钥一切正常。

我的限制是每天 1000 个请求,但我还没有达到。

它是德语的,但你可以看到我在过去 7 天内收到了 142 个请求。

令人困惑的是,当我使用

placesClient?.currentPlace(callback: { (placeLikelihoodList, error) -> Void in ...

我找到了现在的位置。当我想使用查找自动完成功能时,我受到了限制。

placesClient?.findAutocompletePredictions(fromQuery: searchText, bounds: nil, boundsMode: .bias, filter: nil, sessionToken: token, callback: { (gmsAutocompletePrediction, error) in
        if let error = error {
            print(error.localizedDescription) // limit reached error
        }
    })

我是不是忽略了什么?我还可以做些什么?我无法想象错误出在吊舱上。

没有帮助的类似问题:

我遇到了同样的问题。正在尝试从 Google 实施新地点 API 以替换旧 SDK 的地点选择器。每天一两次成功调用后,我总是开始收到以下错误:

An error occurred: The operation couldn’t be completed. Operation failed due to exceeding the quota usage limit. See the usage limits guide (https://developers.google.com/places/ios-sdk/usage) for information on usage limits and how to request a higher limit.

我在控制台中启用了 Places API,并且还启用了使用有效信用卡的计费功能。仍然收到此错误。

解决方案是从 Google 云平台为 iOS 启用 Maps SDK。之后,我对请求没有限制,每次都能得到结果。希望对某人有所帮助。

同样的事情也发生在我身上。你需要 increase your quota limit

google 的开发人员控制台布局非常糟糕。转到那个 link 你可能会或可能不会找到任何实际增加配额的东西。在 Credentials 上,您会看到一个蓝色按钮,上面写着 "increase quota" 或 "request increase",它类似于此

假设您已经设置了结算,一旦您增加了配额,您就不会再遇到任何问题。