4

In my app I have used my app to run Apple maps application and pass it start and end coordinates so user can be navigated.
Is there any option to use the same but with google maps.
Does it require app download or something like that?
Is there any example how to use google for navigation from location to location?

4

2 回答 2

6

您可以使用Google URL Scheme从一个位置导航到另一个位置。文档很棒,但您必须验证用户 iPhone 上是否存在谷歌地图应用程序。

选项1 :

例子 :

If user have iOS 5 and older, use Google URL Scheme,
If user have iOS 6 and google maps installed, use Google URL Scheme
If user have iOS 6 and google maps not installed, use Apple maps URL scheme

Google URL Scheme 文档

注意,当使用 Google URL Scheme 时,您的应用程序会切换到 Google Maps 应用程序。

选项 2:

是否有任何选项可以使用相同但使用谷歌地图

适用于 iOS SDK 的 Google 地图

它需要下载应用程序或类似的东西吗?

是的,适用于 iOS 的 Google 地图 SDK

于 2013-07-09T15:21:14.107 回答
0

iOS >= 6.0 使用 Apple 地图,而 < 6.0 使用 Google 地图。如果您想在所有情况下都显示谷歌地图,请放置一个网络视图并使用谷歌网络地图。

于 2013-07-09T13:52:23.873 回答