MapRouteDrivingOptions.DepartureTime Property

Definition

Gets or sets the date and time of the departure on a route.

public:
 property IReference<DateTime> ^ DepartureTime { IReference<DateTime> ^ get(); void set(IReference<DateTime> ^ value); };
IReference<DateTime> DepartureTime();

void DepartureTime(IReference<DateTime> value);
public System.Nullable<System.DateTimeOffset> DepartureTime { get; set; }
var iReference = mapRouteDrivingOptions.departureTime;
mapRouteDrivingOptions.departureTime = iReference;
Public Property DepartureTime As Nullable(Of DateTimeOffset)

Property Value

The date and time of departure on a route.

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Remarks

This option is useful in cases where you want to compute a route with the traffic conditions that are typical for the specified day and time.

Note

Map packages that you download for offline use don’t contain traffic information. Therefore, all routes that are calculated while in offline mode have the same duration regardless of the value of this property.

Applies to