Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone: Using Google to get directions

In order to get directions, Google provides this nice URL:

Sample here...

How can I use the information that Google provides to get the same direction line on a MKMapView in an app?

like image 999
Ian Vink Avatar asked Feb 23 '23 23:02

Ian Vink


1 Answers

You will have to either use a web view with a Google map, or draw on the MKMapView with overlays. There are a couple of projects on GitHub that do this:

https://github.com/kadirpekel/MapWithRoutes

https://github.com/kishikawakatsumi/MapKit-Route-Directions

like image 56
nevan king Avatar answered Mar 06 '23 17:03

nevan king