Posts Tagged ‘Map route’

Create Route on Map in IOS 6

We can easily create Routes between two places.

Here we have 6 main methods:

-(void)addAnnotationsToMapView

-(NSArray*)getRoutePointFrom:(CLLocationCoordinate2D)origin to:(CLLocationCoordinate2D)destination

-(NSMutableArray *)decodePolyLine:(NSMutableString *)encodedString

-(void)drawRoute

-(void)centerMap

– (MKOverlayView*)mapView:(MKMapView*)theMapView viewForOverlay:(id <MKOverlay>)overlay

Take the code from below link:

https://www.dropbox.com/s/lcd2ljnds46v7v2/MapViewExample.zip

Advertisements