Skip to content

Commit 185d761

Browse files
authored
Merge pull request #108683 from stevemunk/how-to-search-for-address
Minor grammatical improvements to how-to-search-for-address.md
2 parents bfd3898 + 634350c commit 185d761

File tree

1 file changed

+59
-57
lines changed

1 file changed

+59
-57
lines changed

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

Lines changed: 59 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ services: azure-maps
1414

1515
The [Search service] is a set of RESTful APIs designed to help developers search addresses, places, and business listings by name, category, and other geographic information. In addition to supporting traditional geocoding, services can also reverse geocode addresses and cross streets based on latitudes and longitudes. Latitude and longitude values returned by the search can be used as parameters in other Azure Maps services, such as [Route] and [Weather] services.
1616

17-
In this article, you'll learn how to:
17+
This article demonstrates how to:
1818

1919
* Request latitude and longitude coordinates for an address (geocode address location) by using [Search Address].
2020
* Search for an address or Point of Interest (POI) using [Fuzzy Search].
2121
* Use [Reverse Address Search] to translate coordinate location to street address.
22-
* Translate coordinate location into a human understandable cross street using [Search Address Reverse Cross Street]. Most often, this is needed in tracking applications that receive a GPS feed from a device or asset, and wish to know where the coordinate is located.
22+
* Translate coordinate location into a human understandable cross street using [Search Address Reverse Cross Street], most often needed in tracking applications that receive a GPS feed from a device or asset, and wish to know where the coordinate is located.
2323

2424
## Prerequisites
2525

@@ -30,7 +30,7 @@ This tutorial uses the [Postman] application, but you may choose a different API
3030

3131
## Request latitude and longitude for an address (geocoding)
3232

33-
In this example, we'll use [Get Search Address] to convert an address into latitude and longitude coordinates. This process is also called *geocoding*. In addition to returning the coordinates, the response will also return detailed address properties such as street, postal code, municipality, and country/region information.
33+
The example in this section uses [Get Search Address] to convert an address into latitude and longitude coordinates. This process is also called *geocoding*. In addition to returning the coordinates, the response also returns detailed address properties such as street, postal code, municipality, and country/region information.
3434

3535
>[!TIP]
3636
>If you have a set of addresses to geocode, you can use [Post Search Address Batch] to send a batch of queries in a single request.
@@ -43,29 +43,29 @@ In this example, we'll use [Get Search Address] to convert an address into latit
4343
https://atlas.microsoft.com/search/address/json?&subscription-key={Your-Azure-Maps-Subscription-key}&api-version=1.0&language=en-US&query=400 Broad St, Seattle, WA 98109
4444
```
4545
46-
3. Click the blue **Send** button. The response body will contain data for a single location.
46+
3. Select the blue **Send** button. The response body contains data for a single location.
4747
48-
4. Now, we'll search an address that has more than one possible locations. In the **Params** section, change the `query` key to `400 Broad, Seattle`. Click the blue **Send** button.
48+
4. Next, search an address that has more than one possible locations. In the **Params** section, change the `query` key to `400 Broad, Seattle`. Select the blue **Send** button.
4949
5050
:::image type="content" source="./media/how-to-search-for-address/search-address.png" alt-text="Search for address":::
5151
5252
5. Next, try setting the `query` key to `400 Broa`.
5353
54-
6. Click the **Send** button. You can now see that the response includes responses from multiple countries. To geobias results to the relevant area for your users, always add as many location details as possible to the request.
54+
6. Select the **Send** button. The response includes results from multiple countries. To geobias results to the relevant area for your users, always add as many location details as possible to the request.
5555
5656
## Fuzzy Search
5757
58-
[Fuzzy Search] supports standard single line and free-form searches. We recommend that you use the Azure Maps Search Fuzzy API when you don't know your user input type for a search request. The query input can be a full or partial address. It can also be a Point of Interest (POI) token, like a name of POI, POI category or name of brand. Furthermore, to improve the relevance of your search results, the query results can be constrained by a coordinate location and radius, or by defining a bounding box.
58+
[Fuzzy Search] supports standard single line and free-form searches. We recommend that you use the Azure Maps Search Fuzzy API when you don't know your user input type for a search request. The query input can be a full or partial address. It can also be a Point of Interest (POI) token, like a name of POI, POI category or name of brand. Furthermore, to improve the relevance of your search results, constrain the query results using a coordinate location and radius, or by defining a bounding box.
5959
60-
>[!TIP]
61-
>Most Search queries default to maxFuzzyLevel=1 to gain performance and reduce unusual results. You can adjust fuzziness levels by using the `maxFuzzyLevel` or `minFuzzyLevel` parameters. For more information on `maxFuzzyLevel` and a complete list of all optional parameters, see [Fuzzy Search URI Parameters].
60+
> [!TIP]
61+
> Most Search queries default to `maxFuzzyLevel=1` to improve performance and reduce unusual results. Adjust fuzziness levels by using the `maxFuzzyLevel` or `minFuzzyLevel` parameters. For more information on `maxFuzzyLevel` and a complete list of all optional parameters, see [Fuzzy Search URI Parameters].
6262
6363
### Search for an address using Fuzzy Search
6464
65-
In this example, we'll use Fuzzy Search to search the entire world for `pizza`. Then, we'll show you how to search over the scope of a specific country. Finally, we'll show you how to use a coordinate location and radius to scope a search over a specific area, and limit the number of returned results.
65+
The example in this section uses `Fuzzy Search` to search the entire world for *pizza*, then searches over the scope of a specific country. Finally, it demonstrates how to use a coordinate location and radius to scope a search over a specific area, and limit the number of returned results.
6666
67-
>[!IMPORTANT]
68-
>To geobias results to the relevant area for your users, always add as many location details as possible. To learn more, see [Best Practices for Search].
67+
> [!IMPORTANT]
68+
> 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].
6969
7070
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.
7171
@@ -75,45 +75,45 @@ In this example, we'll use Fuzzy Search to search the entire world for `pizza`.
7575
https://atlas.microsoft.com/search/fuzzy/json?&api-version=1.0&subscription-key={Your-Azure-Maps-Subscription-key}&language=en-US&query=pizza
7676
```
7777
78-
>[!NOTE]
79-
>The _json_ attribute in the URL path determines the response format. This article uses json for ease of use and readability. To find other supported response formats, see the `format` parameter definition in the [URI Parameter reference] documentation.
78+
> [!NOTE]
79+
> The _json_ attribute in the URL path determines the response format. This article uses json for ease of use and readability. To find other supported response formats, see the `format` parameter definition in the [URI Parameter reference] documentation.
8080
81-
3. Click **Send** and review the response body.
81+
3. Select **Send** and review the response body.
8282
83-
The ambiguous query string for "pizza" returned 10 [point of interest result] (POI) in both the "pizza" and "restaurant" categories. Each result includes details such as street address, latitude and longitude values, view port, and entry points for the location. The results are now varied for this query, and are not tied to any reference location.
83+
The ambiguous query string for "pizza" returned 10 [point of interest result] (POI) in both the "pizza" and "restaurant" categories. Each result includes details such as street address, latitude and longitude values, view port, and entry points for the location. The results are now varied for this query, and aren't tied to any reference location.
8484
85-
In the next step, we'll use the `countrySet` parameter to specify only the countries/regions for which your application needs coverage. For a complete list of supported countries/regions, see [Search Coverage].
85+
In the next step, you'll use the `countrySet` parameter to specify only the countries/regions for which your application needs coverage. For a complete list of supported countries/regions, see [Search Coverage].
8686
87-
4. The default behavior is to search the entire world, potentially returning unnecessary results. Next, we’ll search for pizza only the United States. Add the `countrySet` key to the **Params** section, and set its value to `US`. Setting the `countrySet` key to `US` will bound the results to the United States.
87+
4. The default behavior is to search the entire world, potentially returning unnecessary results. Next, search for pizza only in the United States. Add the `countrySet` key to the **Params** section, and set its value to `US`. Setting the `countrySet` key to `US` bounds the results to the United States.
8888
8989
:::image type="content" source="./media/how-to-search-for-address/search-fuzzy-country.png" alt-text="Search for pizza in the United States":::
9090
9191
The results are now bounded by the country code and the query returns pizza restaurants in the United States.
9292
93-
5. To get an even more targeted search, you can search over the scope of a lat./lon. coordinate pair. In this example, we'll use the lat./lon. of the Seattle Space Needle. Since we only want to return results within a 400-meters radius, we'll add the `radius` parameter. Also, we'll add the `limit` parameter to limit the results to the five closest pizza places.
93+
5. To get an even more targeted search, you can search over the scope of a lat/lon coordinate pair. The following example uses the lat/lon coordinates of the Seattle Space Needle. Since we only want to return results within a 400-meters radius, we add the `radius` parameter. Also, we add the `limit` parameter to limit the results to the five closest pizza places.
9494
9595
In the **Params** section, add the following key/value pairs:
9696
97-
| Key | Value |
98-
|-----|------------|
99-
| lat | 47.620525 |
100-
| lon | -122.349274 |
101-
| radius | 400 |
102-
| limit | 5|
97+
| Key | Value |
98+
|--------|------------|
99+
| lat | 47.620525 |
100+
| lon | -122.349274|
101+
| radius | 400 |
102+
| limit | 5 |
103103
104-
6. Click **Send**. The response includes results for pizza restaurants near the Seattle Space Needle.
104+
6. Select **Send**. The response includes results for pizza restaurants near the Seattle Space Needle.
105105
106106
## Search for a street address using Reverse Address Search
107107
108108
[Get Search Address Reverse] 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.
109109
110-
>[!IMPORTANT]
111-
>To geobias results to the relevant area for your users, always add as many location details as possible. To learn more, see [Best Practices for Search].
110+
> [!IMPORTANT]
111+
> 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].
112112
113-
>[!TIP]
114-
>If you have a set of coordinate locations to reverse geocode, you can use [Post Search Address Reverse Batch] to send a batch of queries in a single request.
113+
> [!TIP]
114+
> If you have a set of coordinate locations to reverse geocode, you can use [Post Search Address Reverse Batch] to send a batch of queries in a single request.
115115
116-
In this example, we'll be making reverse searches using a few of the optional parameters that are available. For the full list of optional parameters, see [Reverse Search Parameters].
116+
This example demonstrates making reverse searches using a few of the optional parameters that are available. For the full list of optional parameters, see [Reverse Search Parameters].
117117
118118
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.
119119
@@ -123,9 +123,9 @@ In this example, we'll be making reverse searches using a few of the optional pa
123123
https://atlas.microsoft.com/search/address/reverse/json?api-version=1.0&subscription-key={Your-Azure-Maps-Subscription-key}&language=en-US&query=47.591180,-122.332700&number=1
124124
```
125125
126-
3. Click **Send**, and review the response body. You should see one query result. The response includes key address information about Safeco Field.
126+
3. Select **Send**, and review the response body. You should see one query result. The response includes key address information about Safeco Field.
127127
128-
4. Now, we'll add the following key/value pairs to the **Params** section:
128+
4. Next, add the following key/value pairs to the **Params** section:
129129
130130
| Key | Value | Returns
131131
|-----|------------|------|
@@ -136,20 +136,20 @@ In this example, we'll be making reverse searches using a few of the optional pa
136136
137137
:::image type="content" source="./media/how-to-search-for-address/search-reverse.png" alt-text="Search reverse.":::
138138
139-
5. Click **Send**, and review the response body.
139+
5. Select **Send**, and review the response body.
140140
141-
6. Next, we'll add the `entityType` key, and set its value to `Municipality`. The `entityType` key will override the `returnMatchType` key in the previous step. We'll also need to remove `returnSpeedLimit` and `returnRoadUse` since we're requesting information about the municipality. For all possible entity types, see [Entity Types].
141+
6. Next, we add the `entityType` key, and set its value to `Municipality`. The `entityType` key overrides the `returnMatchType` key in the previous step. `returnSpeedLimit` and `returnRoadUse` also need removed since you're requesting information about the municipality. For all possible entity types, see [Entity Types].
142142
143143
:::image type="content" source="./media/how-to-search-for-address/search-reverse-entity-type.png" alt-text="Search reverse entityType.":::
144144
145-
7. Click **Send**. Compare the results to the results returned in step 5. Because the requested entity type is now `municipality`, the response does not include street address information. Also, the returned `geometryId` can be used to request boundary polygon through Azure Maps Get [Search Polygon API].
145+
7. Select **Send**. Compare the results to the results returned in step 5. Because the requested entity type is now `municipality`, the response doesn't include street address information. Also, the returned `geometryId` can be used to request boundary polygon through Azure Maps Get [Search Polygon API].
146146
147-
>[!TIP]
148-
>To get more information on these parameters, as well as to learn about others, see [Reverse Search Parameters].
147+
> [!TIP]
148+
> For more information on these as well as other parameters, see [Reverse Search Parameters].
149149
150150
## Search for cross street using Reverse Address Cross Street Search
151151
152-
In this example, we'll search for a cross street based on the coordinates of an address.
152+
This example demonstrates how to search for a cross street based on the coordinates of an address.
153153
154154
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.
155155
@@ -161,37 +161,39 @@ In this example, we'll search for a cross street based on the coordinates of an
161161
162162
:::image type="content" source="./media/how-to-search-for-address/search-address-cross.png" alt-text="Search cross street.":::
163163
164-
3. Click **Send**, and review the response body. You'll notice that the response contains a `crossStreet` value of `South Atlantic Street`.
164+
3. Select **Send**, and review the response body. Notice that the response contains a `crossStreet` value of `South Atlantic Street`.
165165
166166
## Next steps
167167
168168
> [!div class="nextstepaction"]
169-
> [Azure Maps Search service](/rest/api/maps/search)
169+
> [Azure Maps Search service]
170170
171171
> [!div class="nextstepaction"]
172-
> [Best practices for Azure Maps Search service](how-to-use-best-practices-for-search.md)
172+
> [Best practices for Azure Maps Search service]
173173
174-
[Search service]: /rest/api/maps/search
175-
[Route]: /rest/api/maps/route
176-
[Weather]: /rest/api/maps/weather
177-
[Search Address]: /rest/api/maps/search/getsearchaddress
178-
[Fuzzy Search]: /rest/api/maps/search/getsearchfuzzy
179-
[Reverse Address Search]: /rest/api/maps/search/getsearchaddressreverse
180-
[Search Address Reverse Cross Street]: /rest/api/maps/search/getsearchaddressreversecrossstreet
181174
[Azure Maps account]: quick-demo-map-app.md#create-an-azure-maps-account
182-
[subscription key]: quick-demo-map-app.md#get-the-subscription-key-for-your-account
183-
[Postman]: https://www.postman.com/
184-
[Get Search Address]: /rest/api/maps/search/getsearchaddress
185-
[Post Search Address Batch]: /rest/api/maps/search/postsearchaddressbatch
175+
[Azure Maps Search service]: /rest/api/maps/search
176+
[Best practices for Azure Maps Search service]: how-to-use-best-practices-for-search.md
177+
[Best Practices for Search]: how-to-use-best-practices-for-search.md#geobiased-search-results
178+
[Entity Types]: /rest/api/maps/search/getsearchaddressreverse#entitytype
186179
[Fuzzy Search URI Parameters]: /rest/api/maps/search/getsearchfuzzy#uri-parameters
180+
[Fuzzy Search]: /rest/api/maps/search/getsearchfuzzy
187181
[Get Search Address Reverse]: /rest/api/maps/search/getsearchaddressreverse
182+
[Get Search Address]: /rest/api/maps/search/getsearchaddress
188183
[point of interest result]: /rest/api/maps/search/getsearchpoi#searchpoiresponse
184+
[Post Search Address Batch]: /rest/api/maps/search/postsearchaddressbatch
189185
[Post Search Address Reverse Batch]: /rest/api/maps/search/postsearchaddressreversebatch
186+
[Postman]: https://www.postman.com/
187+
[Reverse Address Search Results]: /rest/api/maps/search/getsearchaddressreverse#searchaddressreverseresult
188+
[Reverse Address Search]: /rest/api/maps/search/getsearchaddressreverse
190189
[Reverse Search Parameters]: /rest/api/maps/search/getsearchaddressreverse#uri-parameters
191-
[Best Practices for Search]: how-to-use-best-practices-for-search.md#geobiased-search-results
192190
[Road Use Types]: /rest/api/maps/search/getsearchaddressreverse#uri-parameters
193-
[Reverse Address Search Results]: /rest/api/maps/search/getsearchaddressreverse#searchaddressreverseresult
194-
[URI Parameter reference]: /rest/api/maps/search/getsearchfuzzy#uri-parameters
191+
[Route]: /rest/api/maps/route
192+
[Search Address Reverse Cross Street]: /rest/api/maps/search/getsearchaddressreversecrossstreet
193+
[Search Address]: /rest/api/maps/search/getsearchaddress
195194
[Search Coverage]: geocoding-coverage.md
196195
[Search Polygon API]: /rest/api/maps/search/getsearchpolygon
197-
[Entity Types]: /rest/api/maps/search/getsearchaddressreverse#entitytype
196+
[Search service]: /rest/api/maps/search
197+
[subscription key]: quick-demo-map-app.md#get-the-subscription-key-for-your-account
198+
[URI Parameter reference]: /rest/api/maps/search/getsearchfuzzy#uri-parameters
199+
[Weather]: /rest/api/maps/weather

0 commit comments

Comments
 (0)