使用Google Maps SDK for iOS,是否可以像普通的Google Maps应用程序一样计算/检索从位置A到位置B乘坐自行车、汽车或步行所需的路线时间?我知道可以使用Google Directions API使用GMSPolyLine显示方向,现在是否可以计算沿着从A到B的折线走路所需的时间?
https://developers.google.com/maps/documentation/directions/#Legs
这些持续时间将取决于您在请求中指定的出行方式(驾车、步行等):https://developers.google.com/maps/documentation/directions/#TravelModes