Skip to content

Commit 60b15fd

Browse files
committed
Updated the tutorial.
1 parent 07e6c1c commit 60b15fd

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

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

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ In this tutorial, you will:
2626
> * Create and run a Jupyter Notebook file on [Azure Notebooks] in the cloud.
2727
> * Call Azure Maps REST APIs in Python.
2828
> * Search for a reachable range based on the electric vehicle's consumption model.
29-
> * Search for electric vehicle charging stations within the reachable range, or isochrone.
29+
> * Search for electric vehicle charging stations within the reachable range, or [isochrone].
3030
> * Render the reachable range boundary and charging stations on a map.
3131
> * Find and visualize a route to the closest electric vehicle charging station based on drive time.
3232
@@ -103,7 +103,7 @@ from IPython.display import Image, display
103103

104104
A package delivery company operates a fleet that includes some electric vehicles. These vehicles need to be recharged during the day without returning to the warehouse. When the remaining charge drops below an hour, a search is conducted to find charging stations within a reachable range. The boundary information for the range of these charging stations is then obtained.
105105

106-
The requested routeType is eco to balance economy and speed. The following script calls the [Get Route Range API] of the Azure Maps routing service, using parameters related to the vehicle's consumption model. The script then parses the response to create a polygon object in GeoJSON format, representing the car's maximum reachable range.
106+
The requested routeType is eco to balance economy and speed. The following script calls the [Get Route Range] API of the Azure Maps routing service, using parameters related to the vehicle's consumption model. The script then parses the response to create a polygon object in GeoJSON format, representing the car's maximum reachable range.
107107

108108
```python
109109
subscriptionKey = "Your Azure Maps key"
@@ -146,9 +146,9 @@ boundsData = {
146146

147147
## Search for electric vehicle charging stations within the reachable range
148148

149-
After determining the electric vehicle's reachable range (isochrone), you can search for charging stations within that area.
149+
After determining the electric vehicle's reachable range ([isochrone]), you can search for charging stations within that area.
150150

151-
The following script uses the Azure Maps [Post Search Inside Geometry API] to find charging stations within the vehicle’s maximum reachable range. It then parses the response into an array of reachable locations.
151+
The following script uses the Azure Maps [Post Search Inside Geometry] API to find charging stations within the vehicle’s maximum reachable range. It then parses the response into an array of reachable locations.
152152

153153
```python
154154
# Search for electric vehicle stations within reachable range.
@@ -208,7 +208,7 @@ display(Image(poiRangeMap))
208208

209209
First, identify all the potential charging stations within the vehicle’s reachable range. Next, determine which of these stations can be accessed in the shortest possible time.
210210

211-
The following script calls the Azure Maps [Matrix Routing API]. It returns the vehicle's location, travel time, and distance to each charging station. The subsequent script parses this response to identify the closest charging station that can be reached in the least amount of time.
211+
The following script calls the Azure Maps [Matrix Routing] API. It returns the vehicle's location, travel time, and distance to each charging station. The subsequent script parses this response to identify the closest charging station that can be reached in the least amount of time.
212212

213213
```python
214214
locationData = {
@@ -237,7 +237,7 @@ closestChargeLoc = ",".join(str(i) for i in minDistLoc)
237237

238238
## Calculate the route to the closest charging station
239239

240-
Once you've located the nearest charging station, use the [Get Route Directions API] to obtain detailed directions from the EV's current location. Run the script in the next cell to generate and parse a GeoJSON object representing the route.
240+
Once you've located the nearest charging station, use the [Get Route Directions] API to obtain detailed directions from the EV's current location. Run the script in the next cell to generate and parse a GeoJSON object representing the route.
241241

242242
```python
243243
# Get the route from the electric vehicle's current location to the closest charging station.
@@ -257,7 +257,7 @@ routeData = {
257257

258258
## Visualize the route
259259

260-
To visualize the route, use the [Get Map Image API] to render it on the map.
260+
To visualize the route, use the [Get Map Image] API to render it on the map.
261261

262262
```python
263263
destination = route[-1]
@@ -315,17 +315,15 @@ To learn more about Azure Notebooks, see
315315
[Azure Maps Jupyter Notebook repository]: https://github.com/Azure-Samples/Azure-Maps-Jupyter-Notebook
316316
[Azure Maps REST APIs]: /rest/api/maps
317317
[Azure Notebooks]: https://notebooks.azure.com
318-
[Get Map Image API]: /rest/api/maps/render/get-map-static-image
318+
[Get Map Image]: /rest/api/maps/render/get-map-static-image
319319
[Get Map Image service]: /rest/api/maps/render/get-map-static-image
320-
[Get Route Directions API]: /rest/api/maps/route/getroutedirections
321320
[Get Route Directions]: /rest/api/maps/route/getroutedirections
322-
[Get Route Range API]: /rest/api/maps/route/getrouterange
323321
[Get Route Range]: /rest/api/maps/route/getrouterange
322+
[isochrone]: glossary.md#isochrone
324323
[Jupyter Notebook document file]: https://github.com/Azure-Samples/Azure-Maps-Jupyter-Notebook/blob/master/AzureMapsJupyterSamples/Tutorials/EV%20Routing%20and%20Reachable%20Range/EVrouting.ipynb
325324
[manage authentication in Azure Maps]: how-to-manage-authentication.md
326-
[Matrix Routing API]: /rest/api/maps/route/postroutematrix
325+
[Matrix Routing]: /rest/api/maps/route/postroutematrix
327326
[Post Route Matrix]: /rest/api/maps/route/postroutematrix
328-
[Post Search Inside Geometry API]: /rest/api/maps/search/postsearchinsidegeometry?view=rest-maps-1.0&preserve-view=true
329327
[Post Search Inside Geometry]: /rest/api/maps/search/postsearchinsidegeometry?view=rest-maps-1.0&preserve-view=true
330328
[Render - Get Map Image]: /rest/api/maps/render/get-map-static-image
331329
[*requirements.txt*]: https://github.com/Azure-Samples/Azure-Maps-Jupyter-Notebook/blob/master/AzureMapsJupyterSamples/Tutorials/EV%20Routing%20and%20Reachable%20Range/requirements.txt

0 commit comments

Comments
 (0)