我希望在我的 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
?
最佳答案
我推荐适用于 iOS 的 Google Places API。它将更易于使用,并且更容易利用 Places API 的 future 改进。
适用于 iOS 的 Google Places API 适用于 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 文档位于 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 的 Places API 现已推出 6 个多月,错误出现和修复的时间很长),但如果请你做file a bug在 https://code.google.com/p/gmaps-api-issues/ — 我们热切希望解决您遇到的任何问题。
总而言之,这两种解决方案都应该非常适合您!
关于ios - 使用适用于 Web 服务的 Google Places Api 或适用于 iOS 的 Google Places API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33503568/