显示iphone sdk中的多个点之间的路线

我想显示两点之间的确切路线path。

我有一些例子,但都有一个例子,显示两点之间的路线。

例如: – 这个 ,甚至我也经历了正则expression式的例子。 但是都有两点之间路线的逻辑。 通过折线我可以画直线,我不能看到路线。

编辑问题: –

有5点: –

1)要点是: – “lat”:-35.29987329273559,“lng”:149.13395404815674,

2)要点是: – “lat”:-35.2984416380826,“lng”:149.13144886493683,

3)要点是: – “lat”:-35.302576234486935,“lng”:149.13335928744252,

4)要点是: – “lat”:-35.301081642089805,“lng”:149.13073539733887,

5)要点是: – “lat”:-35.29991644393122,“lng”:149.13659454104746,

现在我想绘制从点1到点5的路线。路线必须包含所有的点。 我知道我可以find两点之间的路线,但我怎么一次又一次地开火一样的方法,所以find路线请帮助我。 预先感谢

苹果整合新function展示路线。

要求 – >操作系统版本应该是IOS6或更高版本。

iOS6显示从当前位置到YourCoordinateiOS6

 -(void)showMapRouteFromCurrentLocation { CLLocationCoordinate2D currentUserCoordinate = YourCoordinate; //currentUserCoordinate.latitude= +53.509980; //currentUserCoordinate.longitude = -0.133700; MKPlacemark *place = [[MKPlacemark alloc] initWithCoordinate:currentUserCoordinate addressDictionary:nil]; MKMapItem *mapItem = [[MKMapItem alloc]initWithPlacemark:place]; NSDictionary *routeOption = [[NSDictionary alloc] initWithObjectsAndKeys:MKLaunchOptionsDirectionsModeDriving,MKLaunchOptionsDirectionsModeKey, nil]; [mapItem openInMapsWithLaunchOptions:routeOption]; } 

这是这个链接。