我一直在iOS5中绘制路线,但是由于应用程序必须升级到iOS6,它不允许在坐标位置之间绘制路线。我搜索了很多,但最终都是徒劳的。谁能帮我在iOS6中使用哪个api,因为谷歌地图不再支持了???
编辑:我以前使用 Google iOS SDK 来绘制将自动处理折线的路线。据我搜索,我将能够重定向到浏览器以显示路线和导航。但我需要在应用内绘制这个 [iOS6]。iOS6 是否自动进行路由,如果是,请分享一些代码以了解它的要点。这个代码示例我在 iOS5 中使用谷歌地图
// over lay map to draw route
routeOverlayView = [[UICRouteOverlayMapView alloc] initWithMapView:routeMapView];
diretions = [UICGDirections sharedDirections];
UICGDirectionsOptions *options = [[UICGDirectionsOptions alloc] init];
//setting travel mode to driving
options.travelMode = UICGTravelModeDriving;
[diretions loadWithStartPoint:startPoint endPoint:endPoint options:options];
// Overlay polylines
UICGPolyline *polyline = [directions polyline];
NSArray *routePoints = [polyline routePoints];
NSLog(@"routePoints %@",routePoints);
[routeOverlayView setRoutes:routePoints];