[英]Is it possible to run google maps navigation in IOS instead apple maps
在我的应用程序中,我已使用我的应用程序运行Apple Maps应用程序并传递其开始和结束坐标,以便可以导航用户。
除了谷歌地图,是否可以使用相同的选项。
是否需要下载应用程序或类似的东西?
有没有示例如何使用Google进行从一个位置到另一个位置的导航?
您可以使用Google 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
注意,使用Google URL Scheme时,您的应用程序将切换到Google Maps应用程序。
选项2:
除了谷歌地图,是否可以使用相同的选项
是否需要下载应用程序或类似的东西?
是的,iOS版Google Maps SDK
iOS> = 6.0使用Apple地图,而<6.0使用Google地图。 如果您想在所有情况下都显示Google地图,请放置网络视图并利用Google网络地图。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.