javascript - Driving directions with traffic -
how receive driving time between 2 locations traffic. information displayed on iphone maps application, when 'show traffic' option selected.
appreciate help.
you have buy in >>maps business customer , set durationintraffic property of >>directionsrequest object true:
durationintraffic
(optional) specifies whetherdirectionsleg
result should include duration takes account current traffic conditions. feature available maps business customers. time in current traffic returned if traffic information available in requested area.
without being business customer not able take current traffic situation account directions calculations, can still >>activate traffic layer in maps show current traffic situation on map.
Comments
Post a Comment