You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| optimize | optmz | optimizeRoute | False | String | Here are the Bing Maps Calculate a Route API to Azure Maps Route Directions API optimizeRoute equivalents:<br><br>time: fastestWithoutTraffic<br>timeWithTraffic: fastestWithTraffic<br>Azure Maps Route Directions API also supports optimizing routes by distance to return the shortest route by specifying shortest as the ‘optimizeRoute’ input value. |
49
+
| optimize | optmz | optimizeRoute | False | String | Here are the Bing Maps Calculate a Route API to Azure Maps Route Directions API optimizeRoute equivalents:<br><br>time: fastestWithoutTraffic<br>timeWithTraffic: fastestWithTraffic<br>Azure Maps Route Directions API also supports optimizing routes by distance to return the shortest route by specifying shortest as the 'optimizeRoute' input value. |
| routeAttributes | ra | routeOutputOptions | False | string | Here are the Bing Maps Calculate a Route API to Azure Maps Route Directions API routeOutputOptions equivalents:<br><br>routePath: routePath<br>regionTravelSummary: regionTravelSummary<br>Azure Maps Route Directions API supports more values like itinerary and routeSummary. See the RouteOutputOption for details. |
52
52
| routePathOutput | rpo | routeOutputOptions | False | string | Azure Maps Route Directions API supports returning the coordinates for the route path geometry by passing routeOutputOptions=routePath in the request. |
53
53
| timeType | tt | Not supported | Not supported | Not supported | Azure Maps Route Directions API doesn't support Transit Routing. |
54
54
| tolerances | tl | Not supported | Not supported | Not supported ||
55
-
| travelMode || travelMode | False | String | Here are the Bing Maps Calculate a Route API to Azure Maps Route Directions API travelMode equivalents:<br><br>Driving: driving<br>Walking: walking<br>Transit: Not supported<br>Azure Maps support extra travelMode ‘truck’ for truck routing. |
55
+
| travelMode || travelMode | False | String | Here are the Bing Maps Calculate a Route API to Azure Maps Route Directions API travelMode equivalents:<br><br>Driving: driving<br>Walking: walking<br>Transit: Not supported<br>Azure Maps support extra travelMode 'truck' for truck routing. |
56
56
| viaWaypoint.n | vwp.n | features<br>InputWaypointFeaturesItem[]| True | GeoJSON Point | waypoint and viaWaypoint are specified as features, which is a required parameter. However, only waypoint is a required pointType and the request can be made without viaWaypoint.<br><br>In Bing Maps Calculate a Route API, viaWaypoint can be a point, landmark, or address, whereas, in Azure Maps Route Directions API, it must be a point. To convert a landmark or address to a point, you can use the Azure Maps Get Geocoding API.<br><br>Bing Maps Calculate a Truck Route API requires viaWaypoints to be in latitude/longitude format, whereas, Azure Maps requires them to be in longitude/latitude format, as defined in the GeoJSON format. |
57
57
| waypoint.n | wp.n | features InputWaypointFeaturesItem[]| True | GeoJSON Point | In Bing Maps Calculate a Route API, waypoint can be a point, landmark, or address, whereas, in Azure Maps Route Directions API, it must be a point. To convert a landmark or address to a point, you can use the Azure Maps Get Geocoding API.<br><br>Bing Maps Calculate a Route API requires waypoints to be in latitude/longitude format, whereas, Azure Maps requires them to be in longitude/latitude format, as defined in the GeoJSON format. |
58
58
@@ -116,8 +116,8 @@ The following table lists the fields that can appear in the HTTP response when r
116
116
117
117
| Bing Maps Field | Azure Maps Field | Description |
| actualStart | Point feature object | Point feature object with type=”waypoint” and inputIndex = 0 defines the routable start location. |
120
-
| actualEnd | Point feature object | Point feature object with type=”waypoint” and inputIndex = last defines the routable end location. |
119
+
| actualStart | Point feature object | Point feature object with type="waypoint" and inputIndex = 0 defines the routable start location. |
120
+
| actualEnd | Point feature object | Point feature object with type="waypoint" and inputIndex = last defines the routable end location. |
121
121
| alternateVias | alternativeRoutes | Bing Maps alternateVias identifies the separate routes. In Azure Maps, alternate routes are returned as a new feature collection under alternativeRoutes. |
122
122
| compassDegrees | compassDegrees ||
123
123
| compassDirection | compassDirection ||
@@ -126,7 +126,7 @@ The following table lists the fields that can appear in the HTTP response when r
126
126
| distanceUnit | Not applicable | Azure Maps Route Directions API returns the distance in meters. |
127
127
| durationUnit | Not applicable | Azure Maps Route Directions API returns the duration in seconds. |
128
128
| endPathIndices | range | Azure Maps returns the start and end index covered by a specific leg of a route as a range. |
129
-
| endWaypoint | Not supported | In Azure Maps Route Directions API response, the endWaypoint can be derived from type=”waypoint” and inputIndex = last index |
129
+
| endWaypoint | Not supported | In Azure Maps Route Directions API response, the endWaypoint can be derived from type="waypoint" and inputIndex = last index |
130
130
| formattedText | formattedText ||
131
131
| hints | Not supported ||
132
132
| hintType | Not supported ||
@@ -146,7 +146,7 @@ The following table lists the fields that can appear in the HTTP response when r
146
146
| routeSubLegs | subLegs ||
147
147
| sideOfStreet | sideOfStreet ||
148
148
| startPathIndices | range | Azure Maps returns the start and end index covered by a specific leg of a route as a range. |
149
-
| startWaypoint | Not supported | In Azure Maps Route Directions API response, the startWaypoint can be derived from type=”waypoint” and inputIndex = first index |
149
+
| startWaypoint | Not supported | In Azure Maps Route Directions API response, the startWaypoint can be derived from type="waypoint" and inputIndex = first index |
150
150
| towardsRoadName | towardsRoadName ||
151
151
| trafficCongestion | trafficCongestion ||
152
152
| trafficDataUsed | trafficDataUsed ||
@@ -165,7 +165,7 @@ The following JSON sample shows what is returned in the body of the HTTP respons
Copy file name to clipboardExpand all lines: articles/azure-maps/migrate-calculate-truck-route.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
---
2
2
title: Migrate Bing Maps Calculate a Truck Route API to Azure Maps Route Directions API
3
3
titleSuffix: Microsoft Azure Maps
4
-
description: Learn how to Migrate the Bing Maps Calculate a Truck Route API to the Azure Maps Route Directions API.
4
+
description: Learn how to migrate the Bing Maps Calculate a Truck Route API to the Azure Maps Route Directions API.
5
5
author: farazgis
6
6
ms.author: fsiddiqui
7
7
ms.date: 05/16/2024
8
-
ms.topic: how-to
8
+
ms.topic: upgrade-and-migration-article
9
9
ms.service: azure-maps
10
10
ms.subservice: routing
11
11
---
@@ -25,7 +25,7 @@ This article explains how to migrate the Bing Maps [Calculate a Truck Route] API
25
25
- Bing Maps Calculate a Truck Route is a standalone API dedicated to truck routing. Azure Maps Route Directions API provides truck routing support when `travelMode=truck` is specified in the request.
26
26
- Bing Maps Calculate a Truck Route API supports GET or POST requests. Azure Maps Route Directions API supports POST requests.
27
27
- Bing Maps Calculate a Truck Route API supports XML and JSON response formats. Azure Maps Route Directions API supports the GeoJSON response format.
28
-
- Bing Maps Calculate a Truck Route API supports a maximum of 25 waypoints or viaWaypoints per request. Azure Maps Route Directions API supports up to 150 waypoints per request, but doesn’t support viaWaypoints.
28
+
- Bing Maps Calculate a Truck Route API supports a maximum of 25 waypoints or viaWaypoints per request. Azure Maps Route Directions API supports up to 150 waypoints per request, but doesn't support viaWaypoints.
29
29
- Unlike Bing Maps for Enterprise, Azure Maps is a global service that supports specifying a geographic scope, allowing limits to data residency to the European (EU) or United States (US) geographic areas (geos). All requests (including input data) are processed exclusively in the specified geographic area. For more information, see [geographic scope].
30
30
31
31
## Security and authentication
@@ -149,8 +149,8 @@ The following table lists the fields that can appear in the HTTP response when r
149
149
150
150
| Bing Maps Field | Azure Maps Field | Description |
| actualEnd | Point feature object | Point feature object with _type=”waypoint”_ and _inputIndex = last_ defines the routable end location. |
153
-
| actualStart | Point feature object | Point feature object with _type=”waypoint”_ and _inputIndex = 0_ defines the routable start location. |
152
+
| actualEnd | Point feature object | Point feature object with _type="waypoint"_ and _inputIndex = last_ defines the routable end location. |
153
+
| actualStart | Point feature object | Point feature object with _type="waypoint"_ and _inputIndex = 0_ defines the routable start location. |
154
154
| alternateVias | alternativeRoutes | Bing Maps `alternateVias` identifies the separate routes. In Azure Maps Route Directions API, alternate routes are returned as a new feature collection under `alternativeRoutes`. |
155
155
| compassDegrees | Not supported ||
156
156
| compassDirection | Not supported ||
@@ -159,7 +159,7 @@ The following table lists the fields that can appear in the HTTP response when r
159
159
| distanceUnit | Not applicable | Azure Maps Route Directions API returns the distance in meters by default. |
160
160
| durationUnit | Not applicable | Azure Maps Route Directions API returns the duration in seconds. |
161
161
| endPathIndices | range | Azure Maps Route Directions API returns the start and end index covered by a specific leg of a route as a range. |
162
-
| endWaypoint | Not supported | In Azure Maps Route Directions API response, the end waypoint can be derived from _type=”waypoint”_ and _inputIndex = last_ index |
162
+
| endWaypoint | Not supported | In Azure Maps Route Directions API response, the end waypoint can be derived from _type="waypoint"_ and _inputIndex = last_ index |
163
163
| formattedText | formattedText ||
164
164
| hints | Not supported ||
165
165
| hintType | Not supported ||
@@ -179,7 +179,7 @@ The following table lists the fields that can appear in the HTTP response when r
179
179
| routeSubLegs | subLegs ||
180
180
| sideOfStreet | sideOfStreet ||
181
181
| startPathIndices | range | Azure Maps Route Directions API returns the start and end index covered by a specific leg of a route as a range. |
182
-
| startWaypoint | Not supported | In Azure Maps Route Directions API response, the start waypoint can be derived from _type=”waypoint”_ and _inputIndex = first_ index|
182
+
| startWaypoint | Not supported | In Azure Maps Route Directions API response, the start waypoint can be derived from _type="waypoint"_ and _inputIndex = first_ index|
183
183
| towardsRoadName | towardsRoadName ||
184
184
| trafficCongestion | Not supported ||
185
185
| trafficDataUsed | trafficDataUsed ||
@@ -198,7 +198,7 @@ The following JSON sample shows what is returned in the body of the HTTP respons
0 commit comments