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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: