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
Copy file name to clipboardExpand all lines: articles/azure-maps/how-to-request-weather-data.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,15 +41,15 @@ This video provides examples for making REST calls to Azure Maps Weather service
41
41
>
42
42
> In the URL examples in this article you will need to replace `{Your-Azure-Maps-Subscription-key}` with your Azure Maps subscription key.
43
43
44
-
This tutorial uses the [bruno] application, but you can choose a different API development environment.
44
+
This tutorial uses the [Bruno] application, but you can choose a different API development environment.
45
45
46
46
## Request real-time weather data
47
47
48
48
The [Get Current Conditions API] returns detailed weather conditions such as precipitation, temperature, and wind for a given coordinate location. Also, observations from the past 6 or 24 hours for a particular location can be retrieved. The response includes details like observation date and time, description of weather conditions, weather icon, precipitation indicator flags, and temperature. RealFeel™ Temperature and ultraviolet(UV) index are also returned.
49
49
50
50
In this example, you use the [Get Current Conditions API] to retrieve current weather conditions at coordinates located in Seattle, WA.
51
51
52
-
1. Open the bruno app, select **NEW REQUEST** to create the request. In the **NEW REQUEST** window, set **Type** to **HTTP**. Enter a **Name** for the request.
52
+
1. Open the Bruno app, select **NEW REQUEST** to create the request. In the **NEW REQUEST** window, set **Type** to **HTTP**. Enter a **Name** for the request.
53
53
54
54
1. Select the **GET** HTTP method in the **URL** drop-down list, then enter the following URL:
55
55
@@ -61,7 +61,7 @@ In this example, you use the [Get Current Conditions API] to retrieve current we
61
61
62
62
1. Select the run button.
63
63
64
-
:::image type="content" source="./media/weather-service/bruno-run.png" alt-text="A screenshot showing the Request real-time weather data URL with the run button highlighted in the bruno app.":::
64
+
:::image type="content" source="./media/weather-service/bruno-run.png" alt-text="A screenshot showing the Request real-time weather data URL with the run button highlighted in the Bruno app.":::
65
65
66
66
The response body contains current weather information.
67
67
@@ -245,7 +245,7 @@ In this example, you use the [Get Severe Weather Alerts API] to retrieve current
245
245
> [!NOTE]
246
246
> This example retrieves severe weather alerts at the time of this writing. It is likely that there are no longer any severe weather alerts at the requested location. To retrieve actual severe alert data when running this example, you'll need to retrieve data at a different coordinate location.
247
247
248
-
1. In the bruno app, select **NEW REQUEST** to create the request. In the **NEW REQUEST** window, set **Type** to **HTTP**. Enter a **Name** for the request.
248
+
1. In the Bruno app, select **NEW REQUEST** to create the request. In the **NEW REQUEST** window, set **Type** to **HTTP**. Enter a **Name** for the request.
249
249
250
250
1. Select the **GET** HTTP method in the **URL** drop-down list, then enter the following URL:
251
251
@@ -257,7 +257,7 @@ In this example, you use the [Get Severe Weather Alerts API] to retrieve current
257
257
258
258
1. Select the run button.
259
259
260
-
:::image type="content" source="./media/weather-service/bruno-run-request-severe-weather-alerts.png" alt-text="A screenshot showing the Request severe weather alerts URL with the run button highlighted in the bruno app.":::
260
+
:::image type="content" source="./media/weather-service/bruno-run-request-severe-weather-alerts.png" alt-text="A screenshot showing the Request severe weather alerts URL with the run button highlighted in the Bruno app.":::
261
261
262
262
If there are no severe weather alerts, the response body contains an empty `results[]` array. If there are severe weather alerts, the response body contains something like the following JSON response:
263
263
@@ -307,7 +307,7 @@ The [Get Daily Forecast API] returns detailed daily weather forecast such as tem
307
307
308
308
In this example, you use the [Get Daily Forecast API] to retrieve the five-day weather forecast for coordinates located in Seattle, WA.
309
309
310
-
1. In the bruno app, select **NEW REQUEST** to create the request. In the **NEW REQUEST** window, set **Type** to **HTTP**. Enter a **Name** for the request.
310
+
1. In the Bruno app, select **NEW REQUEST** to create the request. In the **NEW REQUEST** window, set **Type** to **HTTP**. Enter a **Name** for the request.
311
311
312
312
1. Select the **GET** HTTP method in the **URL** drop-down list, then enter the following URL:
313
313
@@ -319,7 +319,7 @@ In this example, you use the [Get Daily Forecast API] to retrieve the five-day w
319
319
320
320
1. Select the run button.
321
321
322
-
:::image type="content" source="./media/weather-service/bruno-run-request-daily-weather-forecast-data.png" alt-text="A screenshot showing the Request daily weather forecast data URL with the run button highlighted in the bruno app.":::
322
+
:::image type="content" source="./media/weather-service/bruno-run-request-daily-weather-forecast-data.png" alt-text="A screenshot showing the Request daily weather forecast data URL with the run button highlighted in the Bruno app.":::
323
323
324
324
The response body contains the five-day weather forecast data. For the sake of brevity, the following JSON response shows the forecast for the first day.
325
325
@@ -558,7 +558,7 @@ The [Get Hourly Forecast API] returns detailed weather forecast by the hour for
558
558
559
559
In this example, you use the [Get Hourly Forecast API] to retrieve the hourly weather forecast for the next 12 hours at coordinates located in Seattle, WA.
560
560
561
-
1. In the bruno app, select **NEW REQUEST** to create the request. In the **NEW REQUEST** window, set **Type** to **HTTP**. Enter a **Name** for the request.
561
+
1. In the Bruno app, select **NEW REQUEST** to create the request. In the **NEW REQUEST** window, set **Type** to **HTTP**. Enter a **Name** for the request.
562
562
563
563
1. Select the **GET** HTTP method in the **URL** drop-down list, then enter the following URL:
564
564
@@ -570,7 +570,7 @@ In this example, you use the [Get Hourly Forecast API] to retrieve the hourly we
570
570
571
571
1. Select the run button.
572
572
573
-
:::image type="content" source="./media/weather-service/bruno-run-request-hourly-weather-forecast-data.png" alt-text="A screenshot showing the Request hourly weather forecast data URL with the run button highlighted in the bruno app.":::
573
+
:::image type="content" source="./media/weather-service/bruno-run-request-hourly-weather-forecast-data.png" alt-text="A screenshot showing the Request hourly weather forecast data URL with the run button highlighted in the Bruno app.":::
574
574
575
575
The response body contains weather forecast data for the next 12 hours. The following example JSON response only shows the first hour:
576
576
@@ -670,7 +670,7 @@ In this example, you use the [Get Hourly Forecast API] to retrieve the hourly we
670
670
671
671
In this example, you use the [Get Minute Forecast API] to retrieve the minute-by-minute weather forecast at coordinates located in Seattle, WA. The weather forecast is given for the next 120 minutes. Our query requests that the forecast is given at 15-minute intervals, but you can adjust the parameter to be either 1 or 5 minutes.
672
672
673
-
1. In the bruno app, select **NEW REQUEST** to create the request. In the **NEW REQUEST** window, set **Type** to **HTTP**. Enter a **Name** for the request.
673
+
1. In the Bruno app, select **NEW REQUEST** to create the request. In the **NEW REQUEST** window, set **Type** to **HTTP**. Enter a **Name** for the request.
674
674
675
675
1. Select the **GET** HTTP method in the **URL** drop-down list, then enter the following URL:
676
676
@@ -682,7 +682,7 @@ In this example, you use the [Get Minute Forecast API] to retrieve the minute-by
682
682
683
683
1. Select the run button.
684
684
685
-
:::image type="content" source="./media/weather-service/bruno-run-request-minute-by-minute-weather-forecast-data.png" alt-text="A screenshot showing the Request minute-by-minute weather forecast data URL with the run button highlighted in the bruno app.":::
685
+
:::image type="content" source="./media/weather-service/bruno-run-request-minute-by-minute-weather-forecast-data.png" alt-text="A screenshot showing the Request minute-by-minute weather forecast data URL with the run button highlighted in the Bruno app.":::
686
686
687
687
The response body contains weather forecast data for the next 120 minutes, in 15-minute intervals.
688
688
@@ -790,7 +790,7 @@ In this example, you use the [Get Minute Forecast API] to retrieve the minute-by
This article uses the [bruno](https://www.usebruno.com/) application to create the token request, but you can use a different API development environment.
205
+
This article uses the [Bruno](https://www.usebruno.com/) application to create the token request, but you can use a different API development environment.
206
206
207
-
1. Open the bruno app, select **NEW REQUEST** to create the request.
207
+
1. Open the Bruno app, select **NEW REQUEST** to create the request.
208
208
209
209
1. In the **NEW REQUEST** window, set **Type** to **HTTP**. Enter a **Name** for the request, such as *POST Token Request*.
Copy file name to clipboardExpand all lines: articles/azure-maps/how-to-secure-sas-app.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -412,7 +412,7 @@ az rest --method GET --url 'https://us.atlas.microsoft.com/search/address/json?a
412
412
413
413
## Real-world example
414
414
415
-
You can run requests to Azure Maps APIs from most clients, like C#, Java, or JavaScript. API development platforms like [bruno](https://www.usebruno.com) or [Postman](https://learning.postman.com/docs/sending-requests/generate-code-snippets) can convert an API request into a basic client code snippet in almost any programming language or framework you choose. You can use the generated code snippets in your front-end applications.
415
+
You can run requests to Azure Maps APIs from most clients, like C#, Java, or JavaScript. API development platforms like [Bruno](https://www.usebruno.com) or [Postman](https://learning.postman.com/docs/sending-requests/generate-code-snippets) can convert an API request into a basic client code snippet in almost any programming language or framework you choose. You can use the generated code snippets in your front-end applications.
416
416
417
417
The following small JavaScript code example shows how you could use your SAS token with the JavaScript [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#supplying_request_options) to get and return Azure Maps information. The example uses [Get Search Address](/rest/api/maps/search/get-search-address) API version 1.0. Supply your own value for `<your SAS token>`.
0 commit comments