luqmaan / MetroRappid-iOS

DEPRECATED iOS App for Austin's MetroRapid bus
http://instabus.org
Other
11 stars 2 forks source link

Use driving time estimates instead of CapMetro's estimates #29

Open luqmaan opened 10 years ago

luqmaan commented 10 years ago

CapMetro's estimates are silly 3+3+3+6 estimates. Use actual driving time between the stops to estimate how long it will take the bus to arrive.

https://developer.apple.com/library/mac/documentation/MapKit/Reference/MKDirectionsRequest_class/Reference/Reference.html#//apple_ref/occ/cl/MKDirectionsRequest

luqmaan commented 10 years ago

Doesn't look like there is a way to request driving ETA along a specific polyline/route, so just getting a general driving estimate should suffice. https://developer.apple.com/library/mac/documentation/MapKit/Reference/MKDirections_class/Reference/Reference.html#//apple_ref/occ/instm/MKDirections/calculateETAWithCompletionHandler: