ios - 使用适用于 Web 服务的 Google Places Api 或适用于 iOS 的 Google Places API

标签 ios google-places-api

我希望在我的 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

最佳答案

我推荐适用于 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 bughttps://code.google.com/p/gmaps-api-issues/ — 我们热切希望解决您遇到的任何问题。

总而言之,这两种解决方案都应该非常适合您!

关于ios - 使用适用于 Web 服务的 Google Places Api 或适用于 iOS 的 Google Places API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33503568/

相关文章:

ios - 如何在 Swift 中清除互联网数据?

ios - 使用 OSX 在 vi​​rtualbox 上运行 xcode

python - Google Places Api - 传递具有正确编码的地址

google-places-api - Google Places API Details 请求不返回照片数组

javascript - 获取 Google Places Nearby Search 的 JSON

javascript - 使用 webview 方法从 Objective C 中调用 javascript 函数

ios - 模态视图 Controller 在 iOS 5.1 中旋转不正确,而不是在 5.0 中

ios - 如何像 media.com 一样在 uitextview 中原生渲染内容?

Android:具有语言支持的 Google Places API getAutocompletePredictions

ios - 为什么 Google Place Picker pick Place 在 EXC_BREAKPOINT Swift 3 IOS 10 上崩溃