Drawing routes on MKMapView

Possible duplicate:
Adding a route to MKMapView

So, I plan to draw some routes in MKMapView. What is the easiest way to do this on iOS? I'm not sure if the iPhone can calculate the routes if I give them two points (latitude, longitude). But if the iPhone can calculate the route, then this route may not be the route I want to do in order to go from point A to B.

Do I need a few points along the route and draw it? Since it seems really complicated, as the number of points grows linearly with increasing distance. Any suggestions?

+1
source share
1 answer

Try these posts .. It will help you, I think

http://navarra.ca/?p=786

http://spitzkoff.com/craig/?p=108

This will automatically use the Google Direction API and will extract points between locations that I think

Anyhoo see this blog http://laurilarjo.wordpress.com/2010/10/23/using-google-directions-api-and-drawing-routes-in-iphone-mkmapview/

+2
source

Source: https://habr.com/ru/post/1387568/


All Articles