Dela via


Windows.Services.Maps Namespace

The Windows.Services.Maps namespace contains classes that provide location, routing, and geocoding services.

Classes

EnhancedWaypoint

Represents a stop, start, or intermediate waypoint that a route must pass through.

ManeuverWarning

Represents a potential issue along a route leg.

MapAddress

Represents an address.

MapLocation

Represents a geographic location.

MapLocationFinder

Provides methods to convert addresses to geographic locations (geocoding) and to convert geographic locations to addresses (reverse geocoding).

MapLocationFinderResult

Returns the result of a MapLocationFinder query.

MapManager

Displays the UI that lets users download maps for offline use, or update maps that were previously downloaded.

MapRoute

Represents a path to be traveled between two or more waypoints.

MapRouteDrivingOptions

Represents advanced routing options.

MapRouteFinder

Gets a route.

MapRouteFinderResult

Returns the result of a MapRouteFinder query.

MapRouteLeg

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

MapRouteManeuver

Represents actions to be taken along the path of a route leg.

MapService

Communicates with the online map services.

PlaceInfo

Displays a map location and information that describes that location in a light-dismissible window which closes automatically when the user clicks outside of the window.

PlaceInfoCreateOptions

Represents the information about a map location that your app can show in a light-dismissible window within your app.

Enums

ManeuverWarningKind

Specifies the type of potential issue along a route leg.

ManeuverWarningSeverity

Specifies the severity of a potential issue along a route leg.

MapLocationDesiredAccuracy

Indicates the desired accuracy to use when converting latitude and longitude coordinates to a physical location like a city or address.

MapLocationFinderStatus

Returns the status of a MapLocationFinder query. This enumeration provides values for the Status property of a MapLocationFinderResult.

MapManeuverNotices

Provides additional information about a maneuver. This enumeration provides values for the ManeuverNotices property of a MapRouteManeuver.

MapRouteFinderStatus

Returns the status of a MapRouteFinder query. This enumeration provides values for the Status property of a MapRouteFinderResult.

MapRouteManeuverKind

Describes the various types of maneuvers that can occur in a route. This enumeration provides values for the Kind property of a MapRouteManeuver.

MapRouteOptimization

Specifies the optimizations applied to a route. This enumeration provides values for certain parameters of some overloads of the GetDrivingRouteAsync and GetDrivingRouteFromWaypointsAsync methods.

MapRouteRestrictions

Specifies the restrictions applied to a route. This enumeration provides values for certain parameters of some overloads of the GetDrivingRouteAsync and GetDrivingRouteFromWaypointsAsync methods.

MapServiceDataUsagePreference

Specifies whether to use online or offline map data.

TrafficCongestion

Specifies the level of traffic congestion along a map route or route leg.

WaypointKind

Specifies the type of waypoint.

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.

See also