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
+9-45Lines changed: 9 additions & 45 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
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.
4
4
author: walsehgal
5
5
ms.author: v-musehg
6
6
ms.date: 01/15/2020
@@ -10,11 +10,11 @@ services: azure-maps
10
10
manager: philmea
11
11
---
12
12
13
-
# Using Azure Maps Search services for geocoding and reverse geocoding
13
+
# Search for a location using Azure Maps Search services
14
14
15
15
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.
16
16
17
-
Let's learn, how to:
17
+
In this article you will learn, how to:
18
18
19
19
* 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)
20
20
* 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
74
74
75
75
The **typeahead** flag tells the Address Search API to treat the query as a partial input and return an array of predictive values.
76
76
77
-
## Search for an address using Fuzzy Search API
77
+
## Using Fuzzy Search API
78
78
79
79
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.
80
80
@@ -131,49 +131,12 @@ Most Search queries default to `maxFuzzyLevel=1` to gain performance and reduce
131
131
| lat | 47.620525 |
132
132
| lon | -122.349274 |
133
133
134
-
## Search for address properties and coordinates
135
134
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
137
136
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.
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/en-us/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/en-us/rest/api/maps/search/postsearchaddressreversebatch) to send a batch of queries in a single API call.
175
139
176
-
## Make a Reverse Address Search
177
140
178
141
1. In Postman, click **New Request** | **GET request** and name it **Reverse Address Search**.
179
142
@@ -260,3 +223,4 @@ You can pass a complete or partial street address to the search address API. You
260
223
## Next steps
261
224
262
225
- 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).
0 commit comments