使用 Google 个位置 Api 用于 Web 服务或 Google 个位置 API 用于 iOS

Using Google Places Api for Webservices or Google Places API for iOS

我希望在我的 iOS 应用程序中使用 Places AutoComplete,但我不确定 Google Places API for iOS 是否足够成熟?我正在处理一份工作申请,所以我需要使用一个合理的解决方案。

我在他们的示例中还注意到,平台目标 iOS8.1 我认为相对较高,因为我需要支持 iOS7.1(我知道,我知道)。不管支持不支持iOS7,不应该是iOS8.0而不是iOS8.1吗?平台目标没有在其他任何地方说明,所以我可能会误认为它不支持 iOS7.

此外,Google Places for iOS 只能通过 CocoaPods 获得。

他们的更改日志中似乎也有很多崩溃。

所以目前,iOS 的 Google Places API 似乎不适合我当前的项目。是否可以继续使用 Google Places API for WebServices?

https://developers.google.com/places/ios-api/releases

https://developers.google.com/places/ios-api/start

我推荐 Google 个地方 API iOS。它将更易于使用,并且更容易利用 Places API.

的未来改进

Google Places API for iOS 适用于 iOS 7.0 及更高版本。它在文档中没有明确说明,但如果你四处挖掘,它就在那里。 https://developers.google.com/places/ios-api/start 说:

The Google Places API for iOS is packaged with the Google Maps SDK for iOS.

Google Maps SDK for iOS docs at https://developers.google.com/places/ios-api/start 说:

With the Google Maps SDK for iOS, you can build apps that target native 32-bit or 64-bit devices running iOS 7.0 and later.

就崩溃而言:我认为您不太可能遇到任何崩溃(请记住 iOS 的地点 API 已经可用了 6 个多月,还有很多时间出现并修复的错误),但如果您愿意,请 file a bug at https://code.google.com/p/gmaps-api-issues/ — 我们很乐意解决您遇到的任何问题。

综上所述,任何一种解决方案都应该适合您!