Skip to content

Commit f0594b0

Browse files
committed
removed file from PR.
1 parent 4b32820 commit f0594b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/azure-maps/tutorial-ev-routing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ routeType="eco"
9797
constantSpeedConsumptionInkWhPerHundredkm="50,8.2:130,21.3"
9898

9999
# Get boundaries for the electric vehicle's reachable range.
100-
routeRangeResponse = await (await session.get("https://atlas.microsoft.com/route/range/json?subscription-key={}&api-version=2025-01-01&query={}&travelMode={}&vehicleEngineType={}&currentChargeInkWh={}&maxChargeInkWh={}&timeBudgetInSec={}&routeType={}&constantSpeedConsumptionInkWhPerHundredkm={}"
100+
routeRangeResponse = await (await session.get("https://atlas.microsoft.com/route/range/json?subscription-key={}&api-version=1.0&query={}&travelMode={}&vehicleEngineType={}&currentChargeInkWh={}&maxChargeInkWh={}&timeBudgetInSec={}&routeType={}&constantSpeedConsumptionInkWhPerHundredkm={}"
101101
.format(subscriptionKey,str(currentLocation[0])+","+str(currentLocation[1]),travelMode, vehicleEngineType, currentChargeInkWh, maxChargeInkWh, timeBudgetInSec, routeType, constantSpeedConsumptionInkWhPerHundredkm))).json()
102102

103103
polyBounds = routeRangeResponse["reachableRange"]["boundary"]
@@ -200,7 +200,7 @@ locationData = {
200200
}
201201

202202
# Get the travel time and distance to each specified charging station.
203-
searchPolyRes = await (await session.post(url = "https://atlas.microsoft.com/route/matrix/json?subscription-key={}&api-version=2025-01-01&routeType=shortest&waitForResults=true".format(subscriptionKey), json = locationData)).json()
203+
searchPolyRes = await (await session.post(url = "https://atlas.microsoft.com/route/matrix/json?subscription-key={}&api-version=1.0&routeType=shortest&waitForResults=true".format(subscriptionKey), json = locationData)).json()
204204

205205
distances = []
206206
for dist in range(len(reachableLocations)):
@@ -218,7 +218,7 @@ After locating the nearest charging station, use the [Get Route Directions] API
218218

219219
```python
220220
# Get the route from the electric vehicle's current location to the closest charging station.
221-
routeResponse = await (await session.get("https://atlas.microsoft.com/route/directions/json?subscription-key={}&api-version=2025-01-01&query={}:{}".format(subscriptionKey, str(currentLocation[0])+","+str(currentLocation[1]), closestChargeLoc))).json()
221+
routeResponse = await (await session.get("https://atlas.microsoft.com/route/directions/json?subscription-key={}&api-version=1.0&query={}:{}".format(subscriptionKey, str(currentLocation[0])+","+str(currentLocation[1]), closestChargeLoc))).json()
222222

223223
route = []
224224
for loc in range(len(routeResponse["routes"][0]["legs"][0]["points"])):

0 commit comments

Comments
 (0)