MapRouteFinder Class

Definition

Gets a route.

public ref class MapRouteFinder abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Static(Windows.Services.Maps.IMapRouteFinderStatics2, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Static(Windows.Services.Maps.IMapRouteFinderStatics, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.WebHostHidden]
class MapRouteFinder abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.WebHostHidden]
/// [Windows.Foundation.Metadata.Static(Windows.Services.Maps.IMapRouteFinderStatics, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Static(Windows.Services.Maps.IMapRouteFinderStatics2, 65536, "Windows.Foundation.UniversalApiContract")]
class MapRouteFinder abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.WebHostHidden]
/// [Windows.Foundation.Metadata.Static(Windows.Services.Maps.IMapRouteFinderStatics, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Static(Windows.Services.Maps.IMapRouteFinderStatics2, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Static(Windows.Services.Maps.IMapRouteFinderStatics3, 262144, "Windows.Foundation.UniversalApiContract")]
class MapRouteFinder abstract sealed
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Static(typeof(Windows.Services.Maps.IMapRouteFinderStatics2), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Static(typeof(Windows.Services.Maps.IMapRouteFinderStatics), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.WebHostHidden]
public static class MapRouteFinder
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.WebHostHidden]
[Windows.Foundation.Metadata.Static(typeof(Windows.Services.Maps.IMapRouteFinderStatics), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Static(typeof(Windows.Services.Maps.IMapRouteFinderStatics2), 65536, "Windows.Foundation.UniversalApiContract")]
public static class MapRouteFinder
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.WebHostHidden]
[Windows.Foundation.Metadata.Static(typeof(Windows.Services.Maps.IMapRouteFinderStatics), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Static(typeof(Windows.Services.Maps.IMapRouteFinderStatics2), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Static(typeof(Windows.Services.Maps.IMapRouteFinderStatics3), 262144, "Windows.Foundation.UniversalApiContract")]
public static class MapRouteFinder
Public Class MapRouteFinder
Inheritance
MapRouteFinder
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

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 GetDrivingRouteFromEnhancedWaypointsAsync(IEnumerable)
1703 15063 GetDrivingRouteFromEnhancedWaypointsAsync(IEnumerable,MapRouteDrivingOptions)

Methods

GetDrivingRouteAsync(Geopoint, Geopoint)

Gets a driving route for the specified start and end coordinates.

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteDrivingOptions)

Gets a driving route for the specified start and end coordinates (using MapRouteDrivingOptions ).

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization)

Gets a driving route for the specified start and end coordinates (using optimizations).

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization, MapRouteRestrictions)

Gets a driving route for the specified start and end coordinates (using optimizations and restrictions).

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization, MapRouteRestrictions, Double)

Gets a driving route for the specified start and end coordinates (using optimizations, restrictions, and heading).

GetDrivingRouteFromEnhancedWaypointsAsync(IEnumerable<EnhancedWaypoint>)

Gets a driving route for the specified waypoints (using optimizations).

GetDrivingRouteFromEnhancedWaypointsAsync(IEnumerable<EnhancedWaypoint>, MapRouteDrivingOptions)

Gets a driving route for the specified waypoints (using optimizations).

GetDrivingRouteFromWaypointsAsync(IEnumerable<Geopoint>)

Gets a driving route for the specified waypoints (using optimizations).

GetDrivingRouteFromWaypointsAsync(IEnumerable<Geopoint>, MapRouteOptimization)

Gets a driving route for the specified waypoints.

GetDrivingRouteFromWaypointsAsync(IEnumerable<Geopoint>, MapRouteOptimization, MapRouteRestrictions)

Gets a driving route for the specified waypoints (using optimizations and restrictions).

GetDrivingRouteFromWaypointsAsync(IEnumerable<Geopoint>, MapRouteOptimization, MapRouteRestrictions, Double)

Gets a driving route for the specified waypoints (using optimizations, restrictions, and heading).

GetWalkingRouteAsync(Geopoint, Geopoint)

Gets a walking route using the specified start and end coordinates.

GetWalkingRouteFromWaypointsAsync(IEnumerable<Geopoint>)

Gets a walking route using the specified waypoints.

Applies to

See also