Udostępnij za pośrednictwem


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.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MapRouteFinder final
[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)]
public static class MapRouteFinder
Public Class MapRouteFinder
Inheritance
Object Platform::Object IInspectable MapRouteFinder
Attributes

Windows requirements

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

Remarks

Important

Bing Maps for Enterprise service retirement

The UWP MapControl and map services from the Windows.Services.Maps namespaces rely on Bing Maps. Bing Maps for Enterprise is deprecated and will be retired, at which point the MapControl and services will no longer receive data.

For more information, see the Bing Maps Developer Center and Bing Maps documentation.

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

Methods

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteDrivingOptions)

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

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

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

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization, MapRouteRestrictions)

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

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization)

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

GetDrivingRouteAsync(Geopoint, Geopoint)

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

GetDrivingRouteFromEnhancedWaypointsAsync(IIterable<EnhancedWaypoint>, MapRouteDrivingOptions)

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

GetDrivingRouteFromEnhancedWaypointsAsync(IIterable<EnhancedWaypoint>)

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

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

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

GetDrivingRouteFromWaypointsAsync(IIterable<Geopoint>, MapRouteOptimization, MapRouteRestrictions)

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

GetDrivingRouteFromWaypointsAsync(IIterable<Geopoint>, MapRouteOptimization)

Gets a driving route for the specified waypoints.

GetDrivingRouteFromWaypointsAsync(IIterable<Geopoint>)

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

GetWalkingRouteAsync(Geopoint, Geopoint)

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

GetWalkingRouteFromWaypointsAsync(IIterable<Geopoint>)

Gets a walking route using the specified waypoints.

Applies to

See also