Creates an instance of MapsSearchClient from a subscription key.
import { MapsSearchClient, AzureKeyCredential } from "@azure/maps-search";
const credential = new AzureKeyCredential("<subscription-key>");
const client = new MapsSearchClient(credential);
An AzureKeyCredential instance used to authenticate requests to the service
Optional
options: anyOptions used to configure the Search Client
Creates an instance of MapsSearchClient from an Azure Identity TokenCredential
.
import { MapsSearchClient } from "@azure/maps-search";
import { DefaultAzureCredential } from "@azure/identity";
const credential = new DefaultAzureCredential();
const client = new MapsSearchClient(credential, "<maps-account-client-id>");
An TokenCredential instance used to authenticate requests to the service
The Azure Maps client id of a specific map resource
Optional
options: anyOptions used to configure the Search Client
Sends batches of fuzzy search requests. The method returns a poller for retrieving the result later.
The array of search requests to process. The array can contain a max of 10,000 requests and must contain at least 1 request.
Optional parameters for the operation
Sends batches of reverse geocoding requests. The method returns a poller for retrieving the result later.
The array of search requests to process. The array can contain a max of 10,000 requests and must contain at least 1 request.
Optional parameters for the operation
Sends batches of geocoding requests. The method returns a poller for retrieving the result later.
The array of search requests to process. The array can contain a max of 10,000 requests and must contain at least 1 request.
Optional parameters for the operation
Performs a free-form Search which handles the most fuzzy of inputs handling any combination of address or POI tokens.
Text query and location information to search
Options for fuzzy search
Requests the geometry data such as a city or country outline for a set of entities.
Comma separated list of geometry UUIDs, previously retrieved from an Online Search request.
Optional parameters for the operation
Requests a full list of supported Points of Interest (POI) categories.
Optional parameters for the operation
Continue the fuzzy search request with a serialized state from other poller.
const serializedState = poller.toString()
const rehydratedPoller = resumeFuzzySearchBatch(serializedState)
rehydratedPoller.poll()
The serialized state from the previous poller.
Optional parameters for the operation.
Continue the reverse address search request with a serialized state from other poller.
const serializedState = poller.toString()
const rehydratedPoller = resumeReverseSearchAddressBatch(serializedState)
rehydratedPoller.poll()
The serialized state from the previous poller.
Optional parameters for the operation.
Continue the address search request with a serialized state from other poller.
const serializedState = poller.toString()
const rehydratedPoller = resumeSearchAddressBatch(serializedState)
rehydratedPoller.poll()
The serialized state from the previous poller.
Optional parameters for the operation.
Translates a coordinates into a human understandable street address.
The coordinates for the reverse search query
Optional parameters for the operation
Translates a coordinates into a human understandable cross street.
The coordinates for the reverse search query
Optional parameters for the operation
Geocodes a address.
The address to search for (e.g., "1 Microsoft way, Redmond, WA")
Optional parameters for the operation
Performs a fuzzy search for POIs along a specified route.
The POI name to search for (e.g., "statue of liberty", "starbucks", "pizza").
Maximum detour time of the point of interest in seconds. Max value is 3600 seconds
This represents the route to search along and should be a valid GeoJSON LineString
type.
Optional parameters for the operation
Performs a free form search inside a single geometry or many of them.
The POI name to search for (e.g., "statue of liberty", "starbucks", "pizza").
This represents the geometry for one or more geographical features (parks, state boundary etc.) to search in and should be a GeoJSON compliant type. Please refer to RFC 7946 for details.
Optional parameters for the operation
Requests points of interest (POI) results around a specific location.
The coordinates for the nearby POI search
Optional parameters for the operation
Requests points of interest (POI) results by name
Text query and location information to search
Options for search POI
Requests points of interests (POI) results from given category.
Text query and location information to search
Options for search POI category
Geocodes a structured address.
Structured address used for geocoding
Optional parameters for the operation
Generated using TypeDoc
Client class for interacting with Azure Maps Search Service.