Is there any way to determine the driving time between two locations using Apple's Maps API?

流过昼夜 提交于 2019-12-31 02:25:29

问题


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.



来源:https://stackoverflow.com/questions/16761157/is-there-any-way-to-determine-the-driving-time-between-two-locations-using-apple

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!