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-search-for-address.md
+57-7Lines changed: 57 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -234,7 +234,9 @@ The example in this section uses [Get Geocoding] to convert an address into lati
234
234
235
235
The [Get Geocode Autocomplete] API supports both single-line and free-form address inputs, making it ideal for scenarios where a complete address is unavailable. You can submit either a full or partial address as the query. To enhance the accuracy and relevance of the results, it's recommended to constrain the search by specifying coordinates or a bounding box.
236
236
237
-
This example demonstrates how to use the Get Geocode Autocomplete API to search the entire North American continent for partial input like "university of w." It then shows how to narrow the search scope to a specific country or region using the `countryRegion` parameter. Finally, it demonstrates how to use the `coordinates` parameter to focus the search to a specific area.
237
+
### Search for a place
238
+
239
+
This example demonstrates how to use the Get Geocode Autocomplete API to search for a place in the entire North American continent for partial input like "university of w." It then shows how to narrow the search scope to a specific country or region using the `countryRegion` parameter. Finally, it demonstrates how to use the `coordinates` parameter to focus the search to a specific area.
238
240
239
241
> [!IMPORTANT]
240
242
> To geobias results to the relevant area for your users, always add as many location details as possible. For more information, see [Best Practices for Search].
@@ -306,6 +308,51 @@ Next, focus your search to include more results in a specific area within the de
306
308
> - **University of West Florida** in Escambia County, Florida, USA
307
309
> - **University of Wisconsin-Stout** in Menomonie, Dunn County, Wisconsin, USA
308
310
311
+
### Search for an address
312
+
313
+
This example demonstrates how to use the Get Geocode Autocomplete API to search for an address for Disneyland in southern California using partial input like "dis" using the `coordinates` parameter to focus the search to a specific area.
314
+
315
+
> [!IMPORTANT]
316
+
> To geobias results to the relevant area for your users, always add as many location details as possible. For more information, see [Best Practices for Search].
317
+
318
+
1. Open the [Bruno] application.
319
+
320
+
1. Select **NEW REQUEST** to create the request. In the **NEW REQUEST** window, set **Type** to **HTTP**. Enter a **Name** for the request.
321
+
322
+
1. Select the **GET** HTTP method in the **URL** drop-down list, then enter the following URL:
| formattedAddress | Disney California Adventure Park, Calif. |
337
+
| name | Disney California Adventure Park |
338
+
339
+
> [!NOTE]
340
+
> The `type` property is most relavent when `resultTypeGroups=property`. For a list of what types are available, see the [Autocomplete ResultType Enum]. To specify what types to search for, include the `resultTypes` [URI parameter]. For an example, see the [Autocomplete API call to search for 'Muir Woods', filtered by park and populated place resultTypes, place resultTypeGroups] sample.
341
+
342
+
1. The query inserted the value *place* for the `resultTypeGroups` parameter as the default value for this query since none was provided. To get 'address' information instead of 'place' information, include the `resultTypeGroups=address` parameter:
| formattedAddress | Disneyland, Anaheim, CA 92802, United States |
355
+
309
356
## Search for a street address using Get Reverse Geocoding
310
357
311
358
[Get Reverse Geocoding] translates coordinates into human readable street addresses. This API is often used for applications that consume GPS feeds and want to discover addresses at specific coordinate points.
@@ -375,36 +422,39 @@ This example demonstrates how to search for a cross street based on the coordina
[Autocomplete API call to search for 'Muir Woods', filtered by park and populated place resultTypes, place resultTypeGroups]: /rest/api/maps/search/get-geocode-autocomplete?#autocomplete-api-call-to-search-for-'muir-woods',-filtered-by-park-and-populated-place-resulttypes,-place-resulttypegroups
0 commit comments