Mike
Mike

Reputation:

MKMapView Road Map

How to Get Route from user current Location to Destination location in MkMapView?

Upvotes: 2

Views: 817

Answers (3)

Ramin
Ramin

Reputation: 13433

You can use MapKit for showing maps, but when it comes to routing you'll have to launch out to the Maps app. In the URL launching Maps you can pass the destination's lat/long coordinates and have it place pin. The user can then find their way there from their current location.

Upvotes: 0

CiNN
CiNN

Reputation: 9880

You need to handle that yourself. Get the gps data somewhere for the route and draw the lines yourself.

Upvotes: 1

criscokid
criscokid

Reputation: 640

I don't think that's something allowed in Mapkit. I believe it's part of the restrictions to prevent Mapkit from being used for a turn by turn application.

Upvotes: 0

Related Questions