Skip to content

Commit ef80c4b

Browse files
authored
Merge pull request #102717 from walsehgal/addressSearchUpd
Minor updates maps docs
2 parents c642c45 + 16a568f commit ef80c4b

File tree

2 files changed

+11
-47
lines changed

2 files changed

+11
-47
lines changed

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

Lines changed: 9 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Search locations using the Azure Maps Search Service | Microsoft Azure Maps
3-
description: In this article, you will learn how to search for a location using the Microsoft Azure Maps Search Service.
2+
title: Search for a location using Azure Maps Search services | Microsoft Azure Maps
3+
description: In this article, you will learn how to search for a location using the Microsoft Azure Maps Search Service for geocoding and reverse geocoding.
44
author: walsehgal
55
ms.author: v-musehg
66
ms.date: 01/15/2020
@@ -10,11 +10,11 @@ services: azure-maps
1010
manager: philmea
1111
---
1212

13-
# Using Azure Maps Search services for geocoding and reverse geocoding
13+
# Search for a location using Azure Maps Search services
1414

1515
The Azure Maps [Search Service](https://docs.microsoft.com/rest/api/maps/search) is a set of RESTful APIs designed to help developers to search addresses, places, business listings by name or category, and other geographic information. In addition of 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 like [Route](https://docs.microsoft.com/rest/api/maps/route) and [Weather](https://docs.microsoft.com/rest/api/maps/weather) services.
1616

17-
Let's learn, how to:
17+
In this article you will learn, how to:
1818

1919
* Request latitude and longitude coordinates for an address (geocode address location) by using [Search Address API]( https://docs.microsoft.com/rest/api/maps/search/getsearchaddress)
2020
* Search for an address or Point of Interest (POI) using [Fuzzy Search API](https://docs.microsoft.com/rest/api/maps/search/getsearchfuzzy)
@@ -74,7 +74,7 @@ In this case, you specified a complete address query and receive a single result
7474
7575
The **typeahead** flag tells the Address Search API to treat the query as a partial input and return an array of predictive values.
7676
77-
## Search for an address using Fuzzy Search API
77+
## Using Fuzzy Search API
7878
7979
Azure Maps[ Fuzzy Search API](https://docs.microsoft.com/rest/api/maps/search/getsearchfuzzy) is recommended service to use when you do not know what your user inputs are for a search query. The API combines Point of Interest (POI) search and geocoding into a canonical 'single-line search'. For example, the API can handle inputs of any address or POI token combination. It can also be weighted with a contextual position (lat./lon. pair), fully constrained by a coordinate and radius, or executed more generally without any geo biasing anchor point.
8080
@@ -131,49 +131,12 @@ Most Search queries default to `maxFuzzyLevel=1` to gain performance and reduce
131131
| lat | 47.620525 |
132132
| lon | -122.349274 |
133133
134-
## Search for address properties and coordinates
135134
136-
You can pass a complete or partial street address to the search address API. You still receive a response that includes detailed address properties. Detailed address properties are values like positional values in altitude and longitude, municipality, or subdivision.
135+
## Search for a street address using Reverse Address Search
137136
138-
1. In Postman, click **New Request** | **GET request** and name it **Address Search**.
139-
2. On the Builder tab, select the **GET** HTTP method, enter the request URL for your API endpoint, and select an authorization protocol, if any.
140-
141-
![Address Search](./media/how-to-search-for-address/address_search_url.png)
142-
143-
| Parameter | Suggested value |
144-
|---------------|------------------------------------------------|
145-
| HTTP method | GET |
146-
| Request URL | [https://atlas.microsoft.com/search/address/json?](https://atlas.microsoft.com/search/address/json?) |
147-
| Authorization | No Auth |
148-
149-
3. Click **Params**, and enter the following Key / Value pairs to use as query or path parameters in the request URL:
150-
151-
![Address Search](./media/how-to-search-for-address/address_search_params.png)
152-
153-
| Key | Value |
154-
|------------------|-------------------------|
155-
| api-version | 1.0 |
156-
| subscription-key | \<your Azure Maps key\> |
157-
| query | 400 Broad St, Seattle, WA 98109 |
158-
159-
4. Click **Send** and review the response body.
160-
161-
In this case, you specified a complete address query and receive a single result in the response body.
162-
163-
5. In Params, edit the query string to the following value:
164-
```plaintext
165-
400 Broad, Seattle
166-
```
167-
168-
6. Add the following Key / Value pair to the **Params** section and click **Send**:
169-
170-
| Key | Value |
171-
|-----|------------|
172-
| typeahead | true |
173-
174-
The **typeahead** flag tells the Address Search API to treat the query as a partial input and return an array of predictive values.
137+
Azure Maps [Get Search Address Reverse API]( https://docs.microsoft.com/rest/api/maps/search/getsearchaddressreverse) helps to translate a coordinate (example: 37.786505, -122.3862) into a human understandable street address. Most often this is needed in tracking applications where you receive a GPS feed from the device or asset and wish to know what address where the coordinate is located.
138+
If you have a set of coordinate locations to reverse geocode, you can use [Post Search Address Reverse Batch API](https://docs.microsoft.com/rest/api/maps/search/postsearchaddressreversebatch) to send a batch of queries in a single API call.
175139
176-
## Make a Reverse Address Search
177140
178141
1. In Postman, click **New Request** | **GET request** and name it **Reverse Address Search**.
179142
@@ -260,3 +223,4 @@ You can pass a complete or partial street address to the search address API. You
260223
## Next steps
261224
262225
- Explore the [Azure Maps search service](https://docs.microsoft.com/rest/api/maps/search) API documentation.
226+
- Learn about [Best practices](https://docs.microsoft.com/azure/azure-maps/how-to-use-best-practices-for-search).

articles/azure-maps/weather-coverage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ The following table provides information about what kind of weather information
174174
| Afghanistan || ||
175175
| American Samoa || ||
176176
| Australia ||||
177-
| Azerbaijan || ||
178177
| Bangladesh || ||
179178
| Bhutan || ||
180179
| British Indian Ocean Territory || ||
@@ -242,7 +241,8 @@ The following table provides information about what kind of weather information
242241
| Albania || ||
243242
| Andorra || ||
244243
| Armenia || ||
245-
| Austria ||||
244+
| Austria ||||
245+
| Azerbaijan || ||
246246
| Belarus || ||
247247
| Belgium ||||
248248
| Bosnia and Herzegovina ||||

0 commit comments

Comments
 (0)