How do I receive driving time between two locations with traffic. This information is displayed on iPhone maps application, when 'Show Traffic' option is selected.
Appreciate your help.
You have to buy in as a >>Maps business customer and set the durationInTraffic property of the >>DirectionsRequest object to true:
durationInTraffic(optional) specifies whether theDirectionsLegresult should include a duration that takes into account current traffic conditions. This feature is only available for Maps for Business customers. The time in current traffic will only be returned if traffic information is available in the requested area.
Without being a business customer you will not be able to take the current traffic situation into account for your directions calculations, but you can still >>activate the traffic layer in Maps to show the current traffic situation on your map.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With