Share via


GuidanceRoute.Duration Property

Definition

Gets the estimated travel time of the route.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about the Windows.Services.Maps.Guidance namespace, please work with your Microsoft Account Team representative.

public:
 property TimeSpan Duration { TimeSpan get(); };
TimeSpan Duration();
public System.TimeSpan Duration { get; }
var timeSpan = guidanceRoute.duration;
Public ReadOnly Property Duration As TimeSpan

Property Value

The estimated travel time of the route.

Applies to