Skip to content

Commit 6bf5275

Browse files
committed
clarified searching for 'place' vs 'address' in 'search for an address' section.
1 parent 04e80e8 commit 6bf5275

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

articles/azure-maps/how-to-search-for-address.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ Next, focus your search to include more results in a specific area within the de
310310
311311
### Search for an address
312312
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.
313+
The examples in this section demonstrate the difference between searching for a place and searching for an address using the `resultTypeGroups` parameter of the [Get Geocode Autocomplete] API, using examples that search for Disneyland in southern California using partial input like "dis" and the `coordinates` parameter to focus the search to a specific area.
314314
315315
> [!IMPORTANT]
316316
> 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].
@@ -322,7 +322,7 @@ This example demonstrates how to use the Get Geocode Autocomplete API to search
322322
1. Select the **GET** HTTP method in the **URL** drop-down list, then enter the following URL:
323323
324324
```http
325-
https://atlas.microsoft.com/geocode:autocomplete?api-version=2025-06-01-preview&query=dis&coordinates=-117.920219,33.809570&resultTypeGroups=address&subscription-key={Your-Azure-Maps-Subscription-key}
325+
https://atlas.microsoft.com/geocode:autocomplete?api-version=2025-06-01-preview&query=dis&coordinates=-117.920219,33.809570&subscription-key={Your-Azure-Maps-Subscription-key}
326326
```
327327
328328
1. Select the run button, then review the response body.
@@ -337,12 +337,12 @@ This example demonstrates how to use the Get Geocode Autocomplete API to search
337337
| name | Disney California Adventure Park |
338338
339339
> [!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.
340+
> The `type` property is most relevant when using `resultTypeGroups=property`. To view available types, refer to the [Autocomplete ResultType Enum]. To define which types to search, use the `resultTypes` [URI parameter]. For implementation details, see the [Autocomplete API call to search for 'Muir Woods', filtered by park and populated place resultTypes, place resultTypeGroups] example.
341341
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:
342+
1. Since no value was provided for the `resultTypeGroups` parameter, the query defaulted to *place*. To retrieve address-level information instead, include `resultTypeGroups=address` in your request:
343343
344344
```http
345-
https://atlas.microsoft.com/geocode:autocomplete?api-version=2025-06-01-preview&query=dis&coordinates=-117.920219,33.809570&subscription-key={Your-Azure-Maps-Subscription-key}&resultTypeGroups=address
345+
https://atlas.microsoft.com/geocode:autocomplete?api-version=2025-06-01-preview&query=dis&coordinates=-117.920219,33.809570&resultTypeGroups=address&subscription-key={Your-Azure-Maps-Subscription-key}
346346
```
347347
348348
Notice that the response contains *address* values that include:

0 commit comments

Comments
 (0)