2016-12-07 64 views
0

谷歌Places API的谷歌Places API的错误斯威夫特3

我实现谷歌的地方API在我的项目。我已经实现的一切,但谷歌API返回以下错误:

Current Place error: The operation couldn’t be completed. An internal error occurred in the Places API library. If you believe this error represents a bug, please file a report using the instructions on our community and support page (https://developers.google.com/places/support).

据早前工作,但突然停止。我没有发现任何其他可能对我有帮助的答案。

这是我的代码调用API:

GMSPlacesClient().currentPlace(callback: { 
      (placeLikelihoods, error) -> Void in 

      guard error == nil else { 
       print("Current Place error: \(error!.localizedDescription)") 
       return 
      } 
     }) 

任何帮助,将不胜感激!

+0

显示一些代码。 –

+0

请检查我编辑了我的问题。 – User511

+0

你发现了什么问题? – pasevin

回答

1

确保你给place_id,而不是ID。 这解决了我的问题