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>`.
Copy file name to clipboardExpand all lines: articles/azure-maps/how-to-use-best-practices-for-search.md
+25-15Lines changed: 25 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ This article explains how to apply sound practices when you call data from Azure
30
30
* An [Azure Maps account]
31
31
* A [subscription key]
32
32
33
-
You can use any API development environment such as [bruno] to run the HTTP request samples shown in this article or to build REST calls.
33
+
You can use any API development environment such as [Bruno] to run the HTTP request samples shown in this article or to build REST calls.
34
34
35
35
## Best practices to geocode addresses
36
36
@@ -984,21 +984,21 @@ The Azure Maps [Search service] provides REST APIs for forward geocoding, revers
984
984
* An [Azure Maps account]
985
985
* A [subscription key]
986
986
987
-
You can use any API development environment such as [bruno] to run the HTTP request samples shown in this article or to build REST calls.
987
+
You can use any API development environment such as [Bruno] to run the HTTP request samples shown in this article or to build REST calls.
988
988
989
989
## Core Search concepts
990
990
991
991
### Task‑specific operations
992
992
993
-
Each Search capability is exposed through a dedicated API, such as Get Geocoding, Get Geocode Autocomplete, or Get Reverse Geocoding. This separation improves clarity, performance, and intent alignment.
993
+
Each Search capability is exposed through a dedicated API, such as [Get Geocoding], [Get Geocode Autocomplete], or [Get Reverse Geocoding]. This separation improves clarity, performance, and intent alignment.
994
994
995
995
### Geographic relevance signals
996
996
997
997
Most Search APIs accept geographic biasing inputs such as coordinates, bounding boxes, or country/region filters. These signals strongly influence ranking and result quality.
998
998
999
999
### Batch processing
1000
1000
1001
-
Batch APIs allow multiple queries in a single request for large‑scale or background workloads.
1001
+
Batch APIs allow multiple queries in a single request for large‑scale workloads.
1002
1002
1003
1003
## Best practices for forward geocoding
1004
1004
@@ -1007,9 +1007,8 @@ Use [Get Geocoding] when converting an address or place name into geographic coo
1007
1007
Recommendations:
1008
1008
1009
1009
* Provide the most complete address string available.
1010
-
* Use countryRegion to reduce ambiguity.
1010
+
* Use `countryRegion` to reduce ambiguity.
1011
1011
* Limit results with top when only the best match is needed.
1012
-
* Cache stable results to reduce repeated requests.
1013
1012
1014
1013
### Forward geocoding example request
1015
1014
@@ -1019,14 +1018,15 @@ GET https://atlas.microsoft.com/geocode
1019
1018
&query=1%20Microsoft%20Way%2C%20Redmond%20WA
1020
1019
&countryRegion=US
1021
1020
&top=1
1021
+
&subscription-key={Your-Azure-Maps-Key}
1022
1022
```
1023
1023
1024
1024
## Best practices for autocomplete
1025
1025
1026
1026
Use [Get Geocode Autocomplete] for interactive user input scenarios.
1027
1027
Recommendations:
1028
1028
1029
-
* Trigger requests only after several characters of input.
1029
+
* Trigger autocomplete requests after three or more characters have been entered.
1030
1030
* Always supply either `coordinates` or `bbox`.
1031
1031
* Restrict results using `resultTypeGroups` or `resultTypes`.
1032
1032
@@ -1037,6 +1037,7 @@ GET https://atlas.microsoft.com/geocode:autocomplete
1037
1037
?api-version=2026-01-01
1038
1038
&query=1%20Micro
1039
1039
&coordinates=-122.129,47.639
1040
+
&subscription-key={Your-Azure-Maps-Key}
1040
1041
```
1041
1042
1042
1043
## Best practices for reverse geocoding
@@ -1045,15 +1046,18 @@ Use [Get Reverse Geocoding] to translate coordinates into a human‑readable add
1045
1046
1046
1047
Recommendations:
1047
1048
1048
-
* Prefer batch reverse geocoding for telemetry or asset tracking.
1049
-
* Avoid repeated calls for static coordinates.
1049
+
* Prefer batch reverse geocoding for telemetry, tracking, or other high‑volume workloads.
1050
+
* Cache results and avoid repeated calls for coordinates that do not change.
1051
+
* Validate coordinate order and precision to ensure accurate and consistent results.
1052
+
* Expect approximate or partial addresses in some locations and handle these cases gracefully.
1050
1053
1051
1054
### Reverse geocoding example request
1052
1055
1053
1056
```rest
1054
1057
GET https://atlas.microsoft.com/reverseGeocode
1055
1058
?api-version=2026-01-01
1056
1059
&coordinates=-122.129,47.639
1060
+
&subscription-key={Your-Azure-Maps-Key}
1057
1061
```
1058
1062
1059
1063
## Best practices for batch operations
@@ -1064,12 +1068,14 @@ When to use:
1064
1068
1065
1069
* Importing address lists
1066
1070
* Background enrichment jobs
1067
-
* Large‑scale reverse geocoding
1071
+
* Large‑scale data processing
1068
1072
1069
1073
### Get Geocoding Batch example request
1070
1074
1071
1075
```rest
1072
-
POST https://atlas.microsoft.com/geocode:batch?api-version=2026-01-01&subscription-key={Your-Azure-Maps-Key}
1076
+
POST https://atlas.microsoft.com/geocode:batch
1077
+
?api-version=2026-01-01
1078
+
&subscription-key={Your-Azure-Maps-Key}
1073
1079
```
1074
1080
1075
1081
Include the following in the body of the request:
@@ -1088,7 +1094,9 @@ For more information, see [Get Geocoding Batch].
1088
1094
### Get Reverse Geocoding Batch example request
1089
1095
1090
1096
```rest
1091
-
POST https://atlas.microsoft.com/reverseGeocode:batch?api-version=2026-01-01&subscription-key={Your-Azure-Maps-Key}
1097
+
POST https://atlas.microsoft.com/reverseGeocode:batch
1098
+
?api-version=2026-01-01
1099
+
&subscription-key={Your-Azure-Maps-Key}
1092
1100
```
1093
1101
1094
1102
Include the following in the body of the request:
@@ -1112,14 +1120,16 @@ Use [Get Polygon] to retrieve administrative boundary geometry.
1112
1120
Recommendations:
1113
1121
1114
1122
* Use only when boundary geometry is required.
1115
-
*Cache responses aggressively.
1123
+
*Choose a geometry resolution that matches your application's needs. Use `resolution=small` to return a more manageable polygon size, and avoid `resolution=huge` unless you explicitly require highly detailed geometry, as it can produce very large responses.
1116
1124
1117
1125
### Administrative boundaries example request
1118
1126
1119
1127
```rest
1120
1128
GET https://atlas.microsoft.com/polygon
1121
1129
?api-version=2026-01-01
1122
1130
&entityId=US-WA
1131
+
&resolution=small
1132
+
&subscription-key={Your-Azure-Maps-Key}
1123
1133
```
1124
1134
1125
1135
## Next steps
@@ -1128,12 +1138,12 @@ GET https://atlas.microsoft.com/polygon
1128
1138
> [Search service API documentation](/rest/api/maps/search)
1129
1139
1130
1140
> [!div class="nextstepaction"]
1131
-
> [Search service API documentation](migrate-search-v1-api.md)
0 commit comments