iPhone:使用Google获取路线 [英] iPhone: Using Google to get directions

查看:81
本文介绍了iPhone:使用Google获取路线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了获得路线,Google提供了这个不错的网址:

此处示例...



如何使用谷歌提供的信息,以获得相同的方向线在应用程序中的MKMapView?

解决方案

您将不得不使用使用Google地图查看网页视图,或使用叠加层绘制 MKMapView 。 GitHub上有两个项目可以这样做:



https:// github .com / kadirpekel / MapWithRoutes



https:/ /github.com/kishikawakatsumi/MapKit-Route-Directions


In order to get directions, Google provides this nice URL:

Sample here...

How can I use the information that Google provides to get the same direction line on a MKMapView in an app?

解决方案

You will have to either use a web view with a Google map, or draw on the MKMapView with overlays. There are a couple of projects on GitHub that do this:

https://github.com/kadirpekel/MapWithRoutes

https://github.com/kishikawakatsumi/MapKit-Route-Directions

这篇关于iPhone:使用Google获取路线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆