Reputation: 2816
I have drawn a route between the source point to the destination point and I have also found the distance between them by using CoreLocation
Framework method "distanceFromLocation", but now I want to find time duration of covering a distance between these two points.
I have seen many guidelines but I have so far failed to get any solution. Can anyone please guide me to a solution or help answer how to do this?
Thanks in advance.
Upvotes: 1
Views: 412
Reputation: 71
You probably want to build a route from source to destination point. You can do it either using Apple Maps or google maps. If you choose apple maps then you need to construct MKDirectionsRequest object (see documentation). When you get a response you can check routes that Apple suggests you in MKDirectionsResponse object. Each MKRoute object has an expectedTravelTime property
Upvotes: 1