有没有办法使用Apple的Maps API确定两个地点之间的驾驶时间? [英] Is there any way to determine the driving time between two locations using Apple's Maps API?
问题描述
我正在使用谷歌的距离矩阵/地方/地图API进行评估,而苹果的地图API则用于iOS应用。
I am evaluating using google's Distance Matrix / Places / Maps API, versus Apple's Maps api for an iOS app.
我正在查看 MKDirectionsRequest
类,我似乎无法找到确定两点之间的驾驶时间的方法。如果使用Apple Maps API可以实现这一点,有人可以指出我正确的方向吗?
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?
我希望只使用Apple的API就能实现这一目标,但看起来这只能通过谷歌的API实现。
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.
推荐答案
不,苹果没有任何这样的方式获得2个地点之间的驾驶时间。
我建议使用Google API。请查看 Google方向网络服务。
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.
这篇关于有没有办法使用Apple的Maps API确定两个地点之间的驾驶时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!