Skip to content

Commit 8be9edc

Browse files
committed
revert unneeded changes.
1 parent a12a015 commit 8be9edc

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

articles/azure-maps/azure-maps-authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ After the application receives an access token, the SDK and/or application sends
7474
Here's an example of an Azure Maps route request that uses a Microsoft Entra ID OAuth Bearer token:
7575

7676
```http
77-
GET /route/directions/json?api-version=2025-01-01&query=52.50931,13.42936:52.50274,13.43872
77+
GET /route/directions/json?api-version=1.0&query=52.50931,13.42936:52.50274,13.43872
7878
Host: atlas.microsoft.com
7979
x-ms-client-id: 30d7cc….9f55
8080
Authorization: Bearer eyJ0e…HNIVN

articles/azure-maps/how-to-use-best-practices-for-routing.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ The next sections demonstrate how to make calls to the Route APIs using the disc
8181
In the first example below the departure time is set to the future, at the time of writing.
8282

8383
```http
84-
https://atlas.microsoft.com/route/directions/json?api-version=2025-01-01&subscription-key={Your-Azure-Maps-Subscription-key}&query=51.368752,-0.118332:51.385426,-0.128929&travelMode=car&traffic=true&departAt=2025-03-29T08:00:20&computeTravelTimeFor=all
84+
https://atlas.microsoft.com/route/directions/json?subscription-key={Your-Azure-Maps-Subscription-key}&api-version=1.0&query=51.368752,-0.118332:51.385426,-0.128929&travelMode=car&traffic=true&departAt=2025-03-29T08:00:20&computeTravelTimeFor=all
8585
```
8686

8787
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
104104
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.
105105

106106
```http
107-
https://atlas.microsoft.com/route/directions/json?api-version=2025-01-01&subscription-key={Your-Azure-Maps-Subscription-key}&query=47.6422356,-122.1389797:47.6641142,-122.3011268&travelMode=car&traffic=true&computeTravelTimeFor=all
107+
https://atlas.microsoft.com/route/directions/json?subscription-key={Your-Azure-Maps-Subscription-key}&api-version=1.0&query=47.6422356,-122.1389797:47.6641142,-122.3011268&travelMode=car&traffic=true&computeTravelTimeFor=all
108108
```
109109

110110
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**.
@@ -155,7 +155,7 @@ Azure Maps Routing APIs support commercial vehicle routing, covering commercial
155155
The sample request below queries a route for a commercial truck. The truck is carrying class 1 hazardous waste material.
156156

157157
```http
158-
https://atlas.microsoft.com/route/directions/json?api-version=2025-01-01&subscription-key={Your-Azure-Maps-Subscription-key}&vehicleWidth=2&vehicleHeight=2&vehicleCommercial=true&vehicleLoadType=USHazmatClass1&travelMode=truck&instructionsType=text&query=51.368752,-0.118332:41.385426,-0.128929
158+
https://atlas.microsoft.com/route/directions/json?subscription-key={Your-Azure-Maps-Subscription-key}&api-version=1.0&vehicleWidth=2&vehicleHeight=2&vehicleCommercial=true&vehicleLoadType=USHazmatClass1&travelMode=truck&instructionsType=text&query=51.368752,-0.118332:41.385426,-0.128929
159159
```
160160

161161
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
167167
Changing the US Hazmat Class, from the above query, results in a different route to accommodate this change.
168168

169169
```http
170-
https://atlas.microsoft.com/route/directions/json?api-version=2025-01-01&subscription-key={Your-Azure-Maps-Subscription-key}&vehicleWidth=2&vehicleHeight=2&vehicleCommercial=true&vehicleLoadType=USHazmatClass9&travelMode=truck&instructionsType=text&query=51.368752,-0.118332:41.385426,-0.128929
170+
https://atlas.microsoft.com/route/directions/json?subscription-key={Your-Azure-Maps-Subscription-key}&api-version=1.0&vehicleWidth=2&vehicleHeight=2&vehicleCommercial=true&vehicleLoadType=USHazmatClass9&travelMode=truck&instructionsType=text&query=51.368752,-0.118332:41.385426,-0.128929
171171
```
172172

173173
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
183183
The following query sets the `sectionType` to `traffic`. It requests the sections that contain traffic information from Seattle to San Diego.
184184

185185
```http
186-
https://atlas.microsoft.com/route/directions/json?api-version=2025-01-01&subscription-key={Your-Azure-Maps-Subscription-key}&sectionType=traffic&query=47.6062,-122.3321:32.7157,-117.1611
186+
https://atlas.microsoft.com/route/directions/json?subscription-key={Your-Azure-Maps-Subscription-key}&api-version=1.0&sectionType=traffic&query=47.6062,-122.3321:32.7157,-117.1611
187187
```
188188

189189
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
211211
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.
212212

213213
```http
214-
https://atlas.microsoft.com/route/directions/json?api-version=2025-01-01&subscription-key={Your-Azure-Maps-Subscription-key}&computeBestOrder=false&query=47.606544,-122.336502:47.759892,-122.204821:47.670682,-122.120415:47.480133,-122.213369:47.615556,-122.193689:47.676508,-122.206054:47.495472,-122.360861
214+
https://atlas.microsoft.com/route/directions/json?api-version=1.0&subscription-key={Your-Azure-Maps-Subscription-key}&computeBestOrder=false&query=47.606544,-122.336502:47.759892,-122.204821:47.670682,-122.120415:47.480133,-122.213369:47.615556,-122.193689:47.676508,-122.206054:47.495472,-122.360861
215215
```
216216

217217
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.
229229
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).
230230

231231
```http
232-
https://atlas.microsoft.com/route/directions/json?api-version=2025-01-01&subscription-key={Your-Azure-Maps-Subscription-key}&computeBestOrder=true&query=47.606544,-122.336502:47.759892,-122.204821:47.670682,-122.120415:47.480133,-122.213369:47.615556,-122.193689:47.676508,-122.206054:47.495472,-122.360861
232+
https://atlas.microsoft.com/route/directions/json?api-version=1.0&subscription-key={Your-Azure-Maps-Subscription-key}&computeBestOrder=true&query=47.606544,-122.336502:47.759892,-122.204821:47.670682,-122.120415:47.480133,-122.213369:47.615556,-122.193689:47.676508,-122.206054:47.495472,-122.360861
233233
```
234234

235235
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.

0 commit comments

Comments
 (0)