Skip to content

Commit 29a81d1

Browse files
authored
Merge pull request #108337 from stevemunk/how-to-request-weather-data
How to request weather data: Improve grammar and create end style links.
2 parents 0cc0b7c + 2350dca commit 29a81d1

File tree

1 file changed

+36
-27
lines changed

1 file changed

+36
-27
lines changed

articles/azure-maps/how-to-request-weather-data.md

Lines changed: 36 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
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
34
description: Learn how to request real-time (current) and forecasted (minute, hourly, daily) weather data using Microsoft Azure Maps Weather services
45
author: eriklindeman
56
ms.author: eriklind
@@ -13,15 +14,15 @@ ms.custom: mvc
1314

1415
# Request real-time and forecasted weather data using Azure Maps Weather services
1516

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.
1718

18-
In this article you’ll learn, how to:
19+
This article demonstrates how to request both real-time and forecasted weather data:
1920

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].
2526

2627
This video provides examples for making REST calls to Azure Maps Weather services.
2728

@@ -35,15 +36,15 @@ This video provides examples for making REST calls to Azure Maps Weather service
3536
* A [subscription key]
3637

3738
>[!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.
3940
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.
4142

4243
## Request real-time weather data
4344

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.
4546

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.
4748

4849
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.
4950

@@ -53,7 +54,7 @@ In this example, you'll use the [Get Current Conditions API](/rest/api/maps/weat
5354
https://atlas.microsoft.com/weather/currentConditions/json?api-version=1.0&query=47.60357,-122.32945&subscription-key={Your-Azure-Maps-Subscription-key}
5455
```
5556
56-
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.
5758
5859
```json
5960
{
@@ -228,9 +229,9 @@ In this example, you'll use the [Get Current Conditions API](/rest/api/maps/weat
228229
229230
## Request severe weather alerts
230231
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.
232233
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.
234235
235236
>[!NOTE]
236237
>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
243244
https://atlas.microsoft.com/weather/severe/alerts/json?api-version=1.0&query=41.161079,-104.805450&subscription-key={Your-Azure-Maps-Subscription-key}
244245
```
245246
246-
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:
247248
248249
```json
249250
{
@@ -280,12 +281,12 @@ In this example, you'll use the [Get Severe Weather Alerts API](/rest/api/maps/w
280281
281282
## Request daily weather forecast data
282283
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`.
284285
285286
>[!IMPORTANT]
286287
>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.
287288
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.
289290
290291
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.
291292
@@ -295,7 +296,7 @@ In this example, you'll use the [Get Daily Forecast API](/rest/api/maps/weather/
295296
https://atlas.microsoft.com/weather/forecast/daily/json?api-version=1.0&query=47.60357,-122.32945&duration=5&subscription-key={Your-Azure-Maps-Subscription-key}
296297
```
297298
298-
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.
299300
300301
```json
301302
{
@@ -529,12 +530,12 @@ In this example, you'll use the [Get Daily Forecast API](/rest/api/maps/weather/
529530
530531
## Request hourly weather forecast data
531532
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.
533534
534535
>[!IMPORTANT]
535536
>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).
536537
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.
538539
539540
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.
540541
@@ -544,7 +545,7 @@ In this example, you'll use the [Get Hourly Forecast API](/rest/api/maps/weather
544545
https://atlas.microsoft.com/weather/forecast/hourly/json?api-version=1.0&query=47.60357,-122.32945&duration=12&subscription-key={Your-Azure-Maps-Subscription-key}
545546
```
546547
547-
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.
548549
549550
```json
550551
{
@@ -640,9 +641,9 @@ In this example, you'll use the [Get Hourly Forecast API](/rest/api/maps/weather
640641
641642
## Request minute-by-minute weather forecast data
642643
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).
644645
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.
646647
647648
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.
648649
@@ -652,7 +653,7 @@ In this example, you'll use the [Get Minute Forecast API](/rest/api/maps/weather
652653
https://atlas.microsoft.com/weather/forecast/minute/json?api-version=1.0&query=47.60357,-122.32945&interval=15&subscription-key={Your-Azure-Maps-Subscription-key}
653654
```
654655
655-
3. Click the blue **Send** button. The response body contains weather forecast data for the next 120 minutes, in 15-minute intervals.
656+
3. Select the blue **Send** button. The response body contains weather forecast data for the next 120 minutes, in 15-minute intervals.
656657
657658
```json
658659
{
@@ -746,10 +747,18 @@ In this example, you'll use the [Get Minute Forecast API](/rest/api/maps/weather
746747
## Next steps
747748
748749
> [!div class="nextstepaction"]
749-
> [Weather services in Azure Maps](./weather-services-concepts.md)
750+
> [Weather service concepts]
750751
751752
> [!div class="nextstepaction"]
752-
> [Azure Maps Weather services](/rest/api/maps/weather)
753+
> [Weather services]
753754
754755
[Azure Maps account]: quick-demo-map-app.md#create-an-azure-maps-account
756+
[Get Current Conditions API]: /rest/api/maps/weather/getcurrentconditions
757+
[Get Daily Forecast API]: /rest/api/maps/weather/getdailyforecast
758+
[Get Hourly Forecast API]: /rest/api/maps/weather/gethourlyforecast
759+
[Get Minute Forecast API]: /rest/api/maps/weather/getminuteforecast
760+
[Get Severe Weather Alerts API]: /rest/api/maps/weather/getsevereweatheralerts
761+
[Postman]: https://www.postman.com/
755762
[subscription key]: quick-demo-map-app.md#get-the-subscription-key-for-your-account
763+
[Weather service concepts]: weather-services-concepts.md
764+
[Weather services]: /rest/api/maps/weather

0 commit comments

Comments
 (0)