是否可以在IOS中运行谷歌地图导航而不是苹果地图

111*_*110 4 google-maps ios ios6 google-maps-sdk-ios apple-maps

在我的应用程序中,我使用我的应用程序运行Apple地图应用程序并传递它的开始和结束坐标,以便用户可以导航.
有没有选择使用相同但谷歌地图.
是否需要应用程序下载或类似的东西?
有没有任何示例如何使用谷歌从位置导航到位置?

ola*_*che 6

您可以使用谷歌URL方案导航随位置.文档很棒,但您必须验证用户iPhone上是否存在Google Maps应用程序.

选项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
Run Code Online (Sandbox Code Playgroud)

Google URL Scheme文档

注意,使用Google URL Scheme时,您的应用程序会切换到Google地图应用.

方案2:

有没有选择使用相同但谷歌地图

适用于iOS SDK的Google地图

是否需要应用程序下载或类似的东西?

是的,Google Maps SDK for iOS