Display driving directions in MapKit

Is there any way to show driving directions in iphones MapKit?

Is there a way to get the coordinates and route names in XML or in other formats from the Google MAP API? e.g. http://maps.google.com/maps?f=d&hl=en&geocode=&saddr=39.23232,-103.343433&daddr=41.23232,-104.344343&ie=UTF8&z=12

+3
source share
3 answers

No, you cannot use MapKit to travel. This does not support this.

However, you could improvise a transparent view on top of MapKit and draw something, but nothing applies to MapKit.

EDIT: Here is an example of drawing routes:
http://spitzkoff.com/craig/?p=65

+5
source

Kishikawa Katsumi MapKit-Route-Directions . github https://github.com/kishikawakatsumi/MapKit-Route-Directions.git

+2

You can add UIWebView to your view. What will load something like this in UIWebView

http://code.google.com/apis/maps/documentation/examples/directions-simple.html

+1
source

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


All Articles