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
The response contains a summary element, like the following example. Because the departure time is set to the future, the **trafficDelayInSeconds** value is zero. The **travelTimeInSeconds** value is calculated using time-dependent historic traffic data. So, in this case, the **travelTimeInSeconds** value is equal to the **historicTrafficTravelTimeInSeconds** value.
@@ -104,7 +104,7 @@ The response contains a summary element, like the following example. Because the
104
104
In the next example, we have a real-time routing request, where departure time is now. It's not explicitly specified in the URL because it's the default value.
The response contains a summary as shown in the following example. Because of congestion, the **trafficDelaysInSeconds** value is greater than zero. It's also greater than **historicTrafficTravelTimeInSeconds**.
The Route API returns directions that accommodate the dimensions of the truck and the hazardous waste. You can read the route instructions by expanding the `guidance` element.
@@ -167,7 +167,7 @@ The Route API returns directions that accommodate the dimensions of the truck an
167
167
Changing the US Hazmat Class, from the above query, results in a different route to accommodate this change.
The following response is for a truck carrying a class 9 hazardous material, which is less dangerous than a class 1 hazardous material. When you expand the `guidance` element to read the directions, notice that the directions aren't the same. There are more route instructions for the truck carrying class 1 hazardous material.
@@ -183,7 +183,7 @@ With the Azure Maps Route Direction APIs, developers can request details for eac
183
183
The following query sets the `sectionType` to `traffic`. It requests the sections that contain traffic information from Seattle to San Diego.
The response contains the sections that are suitable for traffic along the given coordinates.
@@ -211,7 +211,7 @@ If you want to optimize the best order to visit the given waypoints, then you ne
211
211
The following query requests the path for six waypoints, with the `computeBestOrder` parameter set to `false`. It's also the default value for the `computeBestOrder` parameter.
The response describes the path length to be 140,851 meters, and that it would take 9,991 seconds to travel that path.
@@ -229,7 +229,7 @@ This route waypoint order is: 0, 1, 2, 3, 4, 5, and 6.
229
229
The following query requests the path for the same six waypoints, as in the above sample. This time, the `computeBestOrder` parameter set to `true` (the traveling salesman optimization).
The response describes the path length to be 91,814 meters, and that it would take 7,797 seconds to travel that path. The travel distance and the travel time are both lower here because the API returned the optimized route.
Copy file name to clipboardExpand all lines: articles/azure-maps/migrate-help-using-copilot.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -208,7 +208,7 @@ Step 6. Create and add a SymbolLayer to the map.
208
208
209
209
Step 7. Create and add a LineLayer to the map.
210
210
211
-
Step 8. Utilize the Route POST API: <https://atlas.microsoft.com/route/directions?api-version=2023-10-01-preview&subscription-key=${subscriptionKey}> to find the route between the start and end points. Add the GeoJSON response to the DataSource and adjust the map's camera based on the bounding box of the response.
211
+
Step 8. Utilize the Route POST API: <https://atlas.microsoft.com/route/directions?api-version=2025-01-01&subscription-key=${subscriptionKey}> to find the route between the start and end points. Add the GeoJSON response to the DataSource and adjust the map's camera based on the bounding box of the response.
212
212
213
213
Example request body:
214
214
@@ -335,7 +335,7 @@ GitHub Copilot can create the following code snippet to provide an interface for
Copy file name to clipboardExpand all lines: articles/azure-maps/tutorial-prioritized-routes.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -231,7 +231,7 @@ This section shows you how to use the Azure Maps Route service to get directions
231
231
endPoint.geometry.coordinates[1] + "," +
232
232
endPoint.geometry.coordinates[0];
233
233
//Make a search route request for a truck vehicle type
234
-
var truckRouteUrl = `https://atlas.microsoft.com/route/directions/json?api-version=1.0&travelMode=truck&vehicleWidth=2&vehicleHeight=2&vehicleLength=5&vehicleLoadType=USHazmatClass2&query=${query}`;
234
+
var truckRouteUrl = `https://atlas.microsoft.com/route/directions/json?api-version=2025-01-01&travelMode=truck&vehicleWidth=2&vehicleHeight=2&vehicleLength=5&vehicleLoadType=USHazmatClass2&query=${query}`;
235
235
fetch(truckRouteUrl, {
236
236
headers: {
237
237
"Subscription-Key": map.authentication.getToken()
@@ -275,7 +275,7 @@ This section shows you how to use the Azure Maps Route service to get directions
275
275
2. Next, append the following JavaScript code to create a route for a car.
276
276
277
277
```JavaScript
278
-
var carRouteUrl = `https://atlas.microsoft.com/route/directions/json?api-version=1.0&query=${query}`;
278
+
var carRouteUrl = `https://atlas.microsoft.com/route/directions/json?api-version=2025-01-01&query=${query}`;
0 commit comments