Skip to content

Commit 9659ed6

Browse files
committed
Updated how images are displayed.
1 parent 8e8796a commit 9659ed6

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Download then open the Notebook used in this tutorial:
5757
1. Open the file [EVrouting.ipynb] in the [AzureMapsJupyterSamples] repository in GitHub.
5858
1. Select the **Download raw file** button in the upper-right corner of the screen to save the file locally.
5959

60-
![A screenshot showing how to download the Notebook file named EVrouting.ipynb from the GitHub repository.](./media/tutorial-ev-routing/download-notebook.png)
60+
:::image type="content" source="./media/tutorial-ev-routing/download-notebook.png"alt-text="A screenshot showing how to download the Notebook file named EVrouting.ipynb from the GitHub repository.":::
6161

6262
1. Open the downloaded Notebook in Visual Studio Code by right-clicking on the file then selecting **Open with > Visual Studio Code**, or through the VS Code File Explorer.
6363

@@ -74,13 +74,13 @@ import urllib.parse
7474
from IPython.display import Image, display
7575
```
7676

77-
![A screenshot showing how to download the first cell in the Notebook containing the required import statements with the run button highlighted.](./media/tutorial-ev-routing/import-libraries.png)
77+
:::image type="content" source="./media/tutorial-ev-routing/import-libraries.png"alt-text="A screenshot showing how to download the first cell in the Notebook containing the required import statements with the run button highlighted.":::
7878

7979
## Request the reachable range boundary
8080

8181
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.
8282

83-
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.
83+
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.
8484

8585
```python
8686
subscriptionKey = "Your Azure Maps key"
@@ -179,7 +179,7 @@ poiRangeMap = await staticMapResponse.content.read()
179179
display(Image(poiRangeMap))
180180
```
181181

182-
![A map showing the location range](./media/tutorial-ev-routing/location-range.png)
182+
:::image type="content" source="./media/tutorial-ev-routing/location-range.png"alt-text="A screenshot that shows the location range.":::
183183

184184
## Find the optimal charging station
185185

@@ -268,7 +268,7 @@ await session.close()
268268
display(Image(staticMapImage))
269269
```
270270

271-
![A map showing the route](./media/tutorial-ev-routing/route.png)
271+
:::image type="content" source="./media/tutorial-ev-routing/route.png"alt-text="A screenshot that shows a map showing the route.":::
272272

273273
In this tutorial, you learned how to call Azure Maps REST APIs directly and visualize Azure Maps data by using Python.
274274

@@ -284,7 +284,7 @@ For more information on the Azure Maps APIs used in this tutorial, see:
284284
## Next steps
285285

286286
> [!div class="nextstepaction"]
287-
> [Learn more about all the notebooks experiences from Microsoft and GitHub]: https://visualstudio.microsoft.com/vs/features/notebooks-at-microsoft/
287+
> [Learn more about all the notebooks experiences from Microsoft and GitHub](https://visualstudio.microsoft.com/vs/features/notebooks-at-microsoft)
288288
289289
[aiohttp]: https://pypi.org/project/aiohttp/
290290
[Azure Maps account]: quick-demo-map-app.md#create-an-azure-maps-account

articles/azure-maps/weather-service-tutorial.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Download then open the Notebook used in this tutorial:
5959
1. Open the file [weatherDataMaps.ipynb] in the [AzureMapsJupyterSamples] repository in GitHub.
6060
1. Select the **Download raw file** button in the upper-right corner of the screen to save the file locally.
6161

62-
![A screenshot showing how to download the Notebook file named weatherDataMaps.ipynb from the GitHub repository.](./media/weather-service-tutorial/download-notebook.png)
62+
:::image type="content" source="./media/weather-service-tutorial/download-notebook.png"alt-text="A screenshot showing how to download the Notebook file named weatherDataMaps.ipynb from the GitHub repository.":::
6363

6464
1. Open the downloaded Notebook in Visual Studio Code by right-clicking on the file then selecting **Open with > Visual Studio Code**, or through the VS Code File Explorer.
6565

@@ -76,7 +76,7 @@ import datetime
7676
from IPython.display import Image, display
7777
```
7878

79-
![A screenshot showing how to download the first cell in the Notebook containing the required import statements with the run button highlighted.](./media/weather-service-tutorial/import-libraries.png)
79+
:::image type="content" source="./media/weather-service-tutorial/import-libraries.png"alt-text="A screenshot showing how to download the first cell in the Notebook containing the required import statements with the run button highlighted.":::
8080

8181
## Import weather data
8282

@@ -145,7 +145,7 @@ await session.close()
145145
display(Image(poi_range_map))
146146
```
147147

148-
![Turbine locations](./media/weather-service-tutorial/location-map.png)
148+
:::image type="content" source="./media/weather-service-tutorial/location-map.png"alt-text="A screenshot showing turbine locations on a map.":::
149149

150150
Group the forecast data with the demo data based on the station ID. The station ID is for the weather data center. This grouping augments the demo data with the forecast data.
151151

@@ -194,11 +194,11 @@ windsPlot.set_ylabel("Wind direction")
194194

195195
The following graphs visualize the forecast data. For the change of wind speed, see the left graph. For change in wind direction, see the right graph. This data is prediction for next 15 days from the day the data is requested.
196196

197-
![Wind speed plot](./media/weather-service-tutorial/speed-date-plot.png) ![Wind direction plot](./media/weather-service-tutorial/direction-date-plot.png)
197+
:::image type="content" source="./media/weather-service-tutorial/speed-date-plot.png"alt-text="A screenshot showing wind speed plots.":::
198198

199-
In this tutorial, you learned how to call Azure Maps REST APIs to get weather forecast data. You also learned how to visualize the data on graphs.
199+
:::image type="content" source="./media/weather-service-tutorial/direction-date-plot.png"alt-text="A screenshot showing wind direction plots.":::
200200

201-
To learn more about how to call Azure Maps REST APIs inside Azure Notebooks, see [EV routing using Azure Notebooks].
201+
In this tutorial, you learned how to call Azure Maps REST APIs to get weather forecast data. You also learned how to visualize the data on graphs.
202202

203203
To explore the Azure Maps APIs that are used in this tutorial, see:
204204

@@ -210,14 +210,13 @@ For a complete list of Azure Maps REST APIs, see [Azure Maps REST APIs].
210210
## Next steps
211211

212212
> [!div class="nextstepaction"]
213-
> [Learn more about all the notebooks experiences from Microsoft and GitHub]: https://visualstudio.microsoft.com/vs/features/notebooks-at-microsoft/
213+
> [Learn more about all the notebooks experiences from Microsoft and GitHub](https://visualstudio.microsoft.com/vs/features/notebooks-at-microsoft)
214214
215215
[Azure Maps account]: quick-demo-map-app.md#create-an-azure-maps-account
216216
[Azure Maps REST APIs]: consumption-model.md
217217
[AzureMapsJupyterSamples]: https://github.com/Azure-Samples/Azure-Maps-Jupyter-Notebook
218218
[Daily Forecast API]: /rest/api/maps/weather/getdailyforecast
219219
[Daily Forecast]: /rest/api/maps/weather/getdailyforecast
220-
[EV routing using Azure Notebooks]: tutorial-ev-routing.md
221220
[free account]: https://azure.microsoft.com/free/
222221
[Get Map Image service]: /rest/api/maps/render/get-map-static-image
223222
[Jupyter Notebook in VS Code]: https://code.visualstudio.com/docs/datascience/jupyter-notebooks

0 commit comments

Comments
 (0)