-api-id | -api-type |
---|---|
T:Windows.Services.Maps.MapRoute |
winrt class |
Represents a path to be traveled between two or more waypoints.
A MapRoute object is returned through the Route property of the MapRouteFinderResult when you call the methods of the MapRouteFinder class.
To display a MapRoute on a MapControl, construct a MapRouteView with the MapRoute and add the MapRouteView to the Routes collection of the MapControl.
Your Universal Windows app must be authenticated before it can use the MapControl and map services in the Windows.Services.Maps namespace. To authenticate your app, you must specify a maps authentication key.
See Request a maps authentication key.
Windows version | SDK version | Value added |
---|---|---|
1703 | 15063 | DurationWithoutTraffic |
1703 | 15063 | TrafficCongestion |
1709 | 16299 | IsScenic |