Skip to content

Commit 634350c

Browse files
committed
several minor grammatical improvements.
1 parent f3ab5cd commit 634350c

File tree

1 file changed

+45
-43
lines changed

1 file changed

+45
-43
lines changed

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

Lines changed: 45 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ 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 demonstrates 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].
@@ -51,21 +51,21 @@ The example in this section uses [Get Search Address] to convert an address into
5151
5252
5. Next, try setting the `query` key to `400 Broa`.
5353
54-
6. Select 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
5858
[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-
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.
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,43 +75,43 @@ The example in this section uses Fuzzy Search to search the entire world for `pi
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
8181
3. Select **Send** and review the response body.
8282
8383
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 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` bounds 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. 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.
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
104104
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
116116
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
@@ -125,7 +125,7 @@ This example demonstrates making reverse searches using a few of the optional pa
125125
126126
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 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
|-----|------------|------|
@@ -144,8 +144,8 @@ This example demonstrates making reverse searches using a few of the optional pa
144144
145145
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
@@ -161,37 +161,39 @@ This example demonstrates how to search for a cross street based on the coordina
161161
162162
:::image type="content" source="./media/how-to-search-for-address/search-address-cross.png" alt-text="Search cross street.":::
163163
164-
3. Select **Send**, and review the response body. You 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)