MapRouteLeg MapRouteLeg MapRouteLeg MapRouteLeg Class


Represents the set of actions (maneuvers) required to travel between two waypoints along a route.

public : sealed class MapRouteLeg
struct winrt::Windows::Services::Maps::MapRouteLeg
public sealed class MapRouteLeg
Public NotInheritable Class MapRouteLeg

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


A collection of MapRouteLeg objects is returned through the Legs property of a MapRoute object. A MapRoute object is returned through the Route property of the MapRouteFinderResult when you call the methods of the MapRouteFinder class.

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.

Version history

Windows version SDK version Value added
1703 15063 DurationWithoutTraffic
1703 15063 TrafficCongestion


BoundingBox BoundingBox BoundingBox BoundingBox

Gets the bounding box that contains the route leg.

DurationWithoutTraffic DurationWithoutTraffic DurationWithoutTraffic DurationWithoutTraffic

Gets the estimated time required to traverse the route without traffic.

EstimatedDuration EstimatedDuration EstimatedDuration EstimatedDuration

Gets the estimated time required to traverse the route leg.

LengthInMeters LengthInMeters LengthInMeters LengthInMeters

Gets the length of the route leg in meters.

Maneuvers Maneuvers Maneuvers Maneuvers

Gets the list of maneuvers associated with the route leg.

Path Path Path Path

Gets the path of the route leg.

TrafficCongestion TrafficCongestion TrafficCongestion TrafficCongestion

Gets the level of traffic congestion along a map route leg.

See also