Is there any way to determine the driving time bet

2019-02-26 10:10发布

问题:

I am evaluating using google's Distance Matrix / Places / Maps API, versus Apple's Maps api for an iOS app.

I am looking at the MKDirectionsRequest class, and I can't seem to find a way to determine what the driving time is between the two points. If this is possible using the apple Maps API, could someone please point me in the right direction?

I am hoping it would be possible to accomplish this just using Apple's API, but it looks like this is only going to be possible with Google's API.

回答1:

No, apple does not have any such way to get driving time between 2 locations.

I'll suggest using Google API. Look at Google Direction web service.