我需要在不打开的情况下显示directions
从我的应用程序内的另一个目的地。这可能与吗?使用 有解决方案,但我希望使用.current location
Apple map app
MapKit framework
UIWebviews
mapview
问问题
1101 次
2 回答
0
您可以使用 MKPolyline 在地图中绘制线条。看到这个链接
http://spitzkoff.com/craig/?p=136
https://github.com/kishikawakatsumi/MapKit-Route-Directions
这些都是教程和开源库。
于 2013-02-19T10:04:11.550 回答
0
使用 google map api 通过添加起点和终点纬度和经度从谷歌获取折线。这是 api 的链接。
这是 api 网址:
http://maps.googleapis.com/maps/api/directions/json?origin=starting_address&destination=destination_address&sensor=false
有关创建折线的参考,请参阅 mapkit doc,以及来自 github 的这个项目。nvpolyline , route-me , mapLines , MapKit-Route-Directions
于 2013-02-19T10:04:18.243 回答