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
+36-27Lines changed: 36 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
---
2
-
title: Request real-time and forecasted weather data using Azure Maps Weather services
2
+
title: Request real-time and forecasted weather data using Azure Maps Weather services
3
+
titleSuffix: Microsoft Azure Maps
3
4
description: Learn how to request real-time (current) and forecasted (minute, hourly, daily) weather data using Microsoft Azure Maps Weather services
4
5
author: eriklindeman
5
6
ms.author: eriklind
@@ -13,15 +14,15 @@ ms.custom: mvc
13
14
14
15
# Request real-time and forecasted weather data using Azure Maps Weather services
15
16
16
-
Azure Maps [Weather services](/rest/api/maps/weather) are a set of RESTful APIs that allows developers to integrate highly dynamic historical, real-time, and forecasted weather data and visualizations into their solutions. In this article, we'll show you how to request both real-time and forecasted weather data.
17
+
Azure Maps [Weather services] are a set of RESTful APIs that allows developers to integrate highly dynamic historical, real-time, and forecasted weather data and visualizations into their solutions.
17
18
18
-
In this article you’ll learn, how to:
19
+
This article demonstrates how to request both real-time and forecasted weather data:
19
20
20
-
* Request real-time (current) weather data using the [Get Current Conditions API](/rest/api/maps/weather/getcurrentconditions).
21
-
* Request severe weather alerts using the [Get Severe Weather Alerts API](/rest/api/maps/weather/getsevereweatheralerts).
22
-
* Request daily forecasts using the [Get Daily Forecast API](/rest/api/maps/weather/getdailyforecast).
23
-
* Request hourly forecasts using the [Get Hourly Forecast API](/rest/api/maps/weather/gethourlyforecast).
24
-
* Request minute by minute forecasts using the [Get Minute Forecast API](/rest/api/maps/weather/getminuteforecast).
21
+
* Request real-time (current) weather data using the [Get Current Conditions API].
22
+
* Request severe weather alerts using the [Get Severe Weather Alerts API].
23
+
* Request daily forecasts using the [Get Daily Forecast API].
24
+
* Request hourly forecasts using the [Get Hourly Forecast API].
25
+
* Request minute by minute forecasts using the [Get Minute Forecast API].
25
26
26
27
This video provides examples for making REST calls to Azure Maps Weather services.
27
28
@@ -35,15 +36,15 @@ This video provides examples for making REST calls to Azure Maps Weather service
35
36
* A [subscription key]
36
37
37
38
>[!IMPORTANT]
38
-
>The [Get Minute Forecast API](/rest/api/maps/weather/getminuteforecast)requires a Gen 1 (S1) or Gen 2 pricing tier. All other APIs require an S0 pricing tier key.
39
+
>The [Get Minute Forecast API]requires a Gen 1 (S1) or Gen 2 pricing tier. All other APIs require an S0 pricing tier key.
39
40
40
-
This tutorial uses the [Postman](https://www.postman.com/) application, but you may choose a different API development environment.
41
+
This tutorial uses the [Postman] application, but you may choose a different API development environment.
41
42
42
43
## Request real-time weather data
43
44
44
-
The [Get Current Conditions API](/rest/api/maps/weather/getcurrentconditions) 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, brief description of the weather conditions, weather icon, precipitation indicator flags, and temperature. RealFeel™ Temperature and ultraviolet(UV) index are also returned.
45
+
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.
45
46
46
-
In this example, you'll use the [Get Current Conditions API](/rest/api/maps/weather/getcurrentconditions) to retrieve current weather conditions at coordinates located in Seattle, WA.
47
+
In this example, you use the [Get Current Conditions API] to retrieve current weather conditions at coordinates located in Seattle, WA.
47
48
48
49
1. Open the Postman app. Select **New** to create the request. In the **Create New** window, select **HTTP Request**. Enter a **Request name** for the request.
49
50
@@ -53,7 +54,7 @@ In this example, you'll use the [Get Current Conditions API](/rest/api/maps/weat
3. Click the blue **Send** button. The response body contains current weather information.
57
+
3. Select the blue **Send** button. The response body contains current weather information.
57
58
58
59
```json
59
60
{
@@ -228,9 +229,9 @@ In this example, you'll use the [Get Current Conditions API](/rest/api/maps/weat
228
229
229
230
## Request severe weather alerts
230
231
231
-
[Azure Maps Get Severe Weather Alerts API](/rest/api/maps/weather/getsevereweatheralerts) returns the severe weather alerts that are available worldwide from both official Government Meteorological Agencies and leading global to regional weather alert providers. The service can return details such as alert type, category, level, and detailed descriptions about the active severe alerts for the requested location, such as hurricanes, thunderstorms, lightning, heat waves or forest fires. As an example, logistics managers can visualize severe weather conditions on a map, along with business locations and planned routes, and coordinate further with drivers and local workers.
232
+
Azure Maps [Get Severe Weather Alerts API] returns the severe weather alerts that are available worldwide from both official Government Meteorological Agencies and leading global to regional weather alert providers. The service returns details like alert type, category, level. The service also returns detailed descriptions about the active severe alerts for the requested location, such as hurricanes, thunderstorms, lightning, heat waves or forest fires. As an example, logistics managers can visualize severe weather conditions on a map, along with business locations and planned routes, and coordinate further with drivers and local workers.
232
233
233
-
In this example, you'll use the [Get Severe Weather Alerts API](/rest/api/maps/weather/getsevereweatheralerts) to retrieve current weather conditions at coordinates located in Cheyenne, WY.
234
+
In this example, you use the [Get Severe Weather Alerts API] to retrieve current weather conditions at coordinates located in Cheyenne, WY.
234
235
235
236
>[!NOTE]
236
237
>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.
@@ -243,7 +244,7 @@ In this example, you'll use the [Get Severe Weather Alerts API](/rest/api/maps/w
3. Click the blue **Send** button. If there are no severe weather alerts, the response body will contain an empty `results[]` array. If there are severe weather alerts, the response body contains something like the following JSON response:
247
+
3. Select the blue **Send** button. 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:
247
248
248
249
```json
249
250
{
@@ -280,12 +281,12 @@ In this example, you'll use the [Get Severe Weather Alerts API](/rest/api/maps/w
280
281
281
282
## Request daily weather forecast data
282
283
283
-
The [Get Daily Forecast API](/rest/api/maps/weather/getdailyforecast) returns detailed daily weather forecast such as temperature and wind. The request can specify how many days to return: 1, 5, 10, 15, 25, or 45 days for a given coordinate location. The response includes details such as temperature, wind, precipitation, air quality, and UV index. In this example, we request for five days by setting `duration=5`.
284
+
The [Get Daily Forecast API] returns detailed daily weather forecast such as temperature and wind. The request can specify how many days to return: 1, 5, 10, 15, 25, or 45 days for a given coordinate location. The response includes details such as temperature, wind, precipitation, air quality, and UV index. In this example, we request for five days by setting `duration=5`.
284
285
285
286
>[!IMPORTANT]
286
287
>In the S0 pricing tier, you can request daily forecast for the next 1, 5, 10, and 15 days. In either Gen 1 (S1) or Gen 2 pricing tier, you can request daily forecast for the next 25 days, and 45 days.
287
288
288
-
In this example, you'll use the [Get Daily Forecast API](/rest/api/maps/weather/getdailyforecast) to retrieve the five-day weather forecast for coordinates located in Seattle, WA.
289
+
In this example, you use the [Get Daily Forecast API] to retrieve the five-day weather forecast for coordinates located in Seattle, WA.
289
290
290
291
1. In the Postman app, select **New** to create the request. In the **Create New** window, select **HTTP Request**. Enter a **Request name** for the request.
291
292
@@ -295,7 +296,7 @@ In this example, you'll use the [Get Daily Forecast API](/rest/api/maps/weather/
3. Click the blue **Send** button. The response body contains the five-day weather forecast data. For the sake of brevity, the JSON response below shows the forecast for the first day.
299
+
3. Select the blue **Send** button. 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.
299
300
300
301
```json
301
302
{
@@ -529,12 +530,12 @@ In this example, you'll use the [Get Daily Forecast API](/rest/api/maps/weather/
529
530
530
531
## Request hourly weather forecast data
531
532
532
-
The [Get Hourly Forecast API](/rest/api/maps/weather/gethourlyforecast) returns detailed weather forecast by the hour for the next 1, 12, 24 (1 day), 72 (3 days), 120 (5 days), and 240 hours (10 days) for the given coordinate location. The API returns details such as temperature, humidity, wind, precipitation, and UV index.
533
+
The [Get Hourly Forecast API] returns detailed weather forecast by the hour for the next 1, 12, 24 (1 day), 72 (3 days), 120 (5 days), and 240 hours (10 days) for the given coordinate location. The API returns details such as temperature, humidity, wind, precipitation, and UV index.
533
534
534
535
>[!IMPORTANT]
535
536
>In the S0 pricing tier, you can request hourly forecast for the next 1, 12, 24 hours (1 day), and 72 hours (3 days). In either Gen 1 (S1) or Gen 2 pricing tier, you can request hourly forecast for the next 120 (5 days) and 240 hours (10 days).
536
537
537
-
In this example, you'll use the [Get Hourly Forecast API](/rest/api/maps/weather/gethourlyforecast) to retrieve the hourly weather forecast for the next 12 hours at coordinates located in Seattle, WA.
538
+
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.
538
539
539
540
1. In the Postman app, select **New** to create the request. In the **Create New** window, select **HTTP Request**. Enter a **Request name** for the request.
540
541
@@ -544,7 +545,7 @@ In this example, you'll use the [Get Hourly Forecast API](/rest/api/maps/weather
3. Click the blue **Send** button. The response body contains weather forecast data for the next 12 hours. For the sake of brevity, the JSON response below shows the forecast for the first hour.
548
+
3. Select the blue **Send** button. The response body contains weather forecast data for the next 12 hours. For the sake of brevity, the following JSON response shows the forecast for the first hour.
548
549
549
550
```json
550
551
{
@@ -640,9 +641,9 @@ In this example, you'll use the [Get Hourly Forecast API](/rest/api/maps/weather
640
641
641
642
## Request minute-by-minute weather forecast data
642
643
643
-
The [Get Minute Forecast API](/rest/api/maps/weather/getminuteforecast) returns minute-by-minute forecasts for a given location for the next 120 minutes. Users can request weather forecasts in intervals of 1, 5 and 15 minutes. The response includes details such as the type of precipitation (including rain, snow, or a mixture of both), start time, and precipitation intensity value (dBZ).
644
+
The [Get Minute Forecast API] returns minute-by-minute forecasts for a given location for the next 120 minutes. Users can request weather forecasts in intervals of 1, 5 and 15 minutes. The response includes details such as the type of precipitation (including rain, snow, or a mixture of both), start time, and precipitation intensity value (dBZ).
644
645
645
-
In this example, you'll use the [Get Minute Forecast API](/rest/api/maps/weather/getminuteforecast) 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 be given at 15-minute intervals, but you can adjust the parameter to be either 1 or 5 minutes.
646
+
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.
646
647
647
648
1. In the Postman app, select **New** to create the request. In the **Create New** window, select **HTTP Request**. Enter a **Request name** for the request.
648
649
@@ -652,7 +653,7 @@ In this example, you'll use the [Get Minute Forecast API](/rest/api/maps/weather
0 commit comments