Does iPhone have a trip duration API or is the only option to use google's getDuration()?
Thanks.
Does iPhone have a trip duration API or is the only option to use google's getDuration()?
Thanks.
MapKit doesn't have any idea about trips. It doesn't do routes at all. There are ways to fake it, but the native mapkit library only handles points, not routes or even polylines.
I've faked it by using a WebView to call a Google Maps API page, but be warned that the JavaScript to make a Google Maps map display properly is NOT memory-light.