Tariq
Tariq

Reputation: 9979

Route between two locations

I am using CSMapAnnotation classes for different purposes. Now I have to show route between two locations. I do have latitude and longitude for both of the locations.

Can any one please help the best way to achieve that ?

Upvotes: 1

Views: 996

Answers (1)

j_freyre
j_freyre

Reputation: 4738

You can use this example:

http://blog.kadirpekel.com/2010/05/30/drawing_routes_onto_mkmapview_using_unofficial_google_maps_directions_api/

It will call the routing api and parse the result.

Then a new layer is added above the map with the route between A and B.

Upvotes: 1

Related Questions