Search - Get Search POI Category Tree
Use to get a list of supported Points of Interest (POI) categories and subcategories.
The Get Search POI Category Tree
API is an HTTP GET
request that provides a full list of supported Points of Interest (POI) categories and subcategories together with their translations and synonyms. The returned content can be used to provide more meaningful results through other Search Service APIs, like Get Search POI.
GET https://atlas.microsoft.com/search/poi/category/tree/json?api-version=1.0
GET https://atlas.microsoft.com/search/poi/category/tree/json?api-version=1.0&language={language}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
format
|
path | True |
Desired format of the response. Only |
|
api-version
|
query | True |
string |
Version number of Azure Maps API. |
language
|
query |
string |
Language in which search results should be returned. Should be one of supported IETF language tags, except NGT and NGT-Latn. Language tag is case insensitive. When data in specified language is not available for a specific field, default language is used (English). Please refer to Supported Languages for details. |
Request Header
Name | Required | Type | Description |
---|---|---|---|
x-ms-client-id |
string |
Specifies which account is intended for usage in conjunction with the Microsoft Entra ID security model. It represents a unique ID for the Azure Maps account and can be retrieved from the Azure Maps management plane Account API. To use Microsoft Entra ID security in Azure Maps see the following articles for guidance. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
An unexpected error occurred. |
Security
AADToken
These are the Microsoft Entra OAuth 2.0 Flows. When paired with Azure role-based access control it can be used to control access to Azure Maps REST APIs. Azure role-based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built-in role or a custom role composed of one or more permissions to Azure Maps REST APIs.
To implement scenarios, we recommend viewing authentication concepts. In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.
Note
- This security definition requires the use of the
x-ms-client-id
header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the Maps management API. - The
Authorization URL
is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Microsoft Entra ID configurations. - The Azure role-based access control is configured from the Azure management plane via Azure portal, PowerShell, CLI, Azure SDKs, or REST APIs.
- Usage of the Azure Maps Web SDK allows for configuration based setup of an application for multiple use cases.
- For more information on Microsoft identity platform, see Microsoft identity platform overview.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
https://atlas.microsoft.com/.default | https://atlas.microsoft.com/.default |
subscription-key
This is a shared key that is provisioned when you Create an Azure Maps account in the Azure portal or using PowerShell, CLI, Azure SDKs, or REST API.
With this key, any application can access all REST API. In other words, this key can be used as a master key in the account that they are issued in.
For publicly exposed applications, our recommendation is to use the confidential client applications approach to access Azure Maps REST APIs so your key can be securely stored.
Type:
apiKey
In:
query
SAS Token
This is a shared access signature token is created from the List SAS operation on the Azure Maps resource through the Azure management plane via Azure portal, PowerShell, CLI, Azure SDKs, or REST APIs.
With this token, any application is authorized to access with Azure role-based access controls and fine-grain control to the expiration, rate, and region(s) of use for the particular token. In other words, the SAS Token can be used to allow applications to control access in a more secured way than the shared key.
For publicly exposed applications, our recommendation is to configure a specific list of allowed origins on the Map account resource to limit rendering abuse and regularly renew the SAS Token.
Type:
apiKey
In:
header
Examples
Get the POI Category Tree (only partial response shown below)
Sample request
GET https://atlas.microsoft.com/search/poi/category/tree/json?api-version=1.0
Sample response
{
"poiCategories": [
{
"id": 7320,
"name": "Sports Center",
"childCategoryIds": [
7320002,
7320003,
7320005
],
"synonyms": [
"Gym",
"Indoors Sports",
"Sports Centre"
]
},
{
"id": 7374,
"name": "Stadium",
"childCategoryIds": [
7374002,
7374009,
7374012,
7374003,
7374010,
7374005,
7374008,
7374011,
7374006,
7374014,
7374013,
7374007,
7374004
],
"synonyms": [
"Arena",
"Gymnasium",
"Sports Ground",
"Sports Stadium"
]
},
{
"id": 7315,
"name": "Restaurant",
"childCategoryIds": [
7315081,
7315002,
7315082,
7315003,
7315083,
7315084,
7315085,
7315062,
7315086,
7315004,
7315146,
7315005,
7315087,
7315006,
7315007,
7315088,
7315089,
7315072,
7315008,
7315142,
7315090,
7315091,
7315147,
7315009,
7315092,
7315010,
7315011,
7315070,
7315093,
7315012,
7315094,
7315095,
7315063,
7315013,
7315096,
7315097,
7315068,
7315098,
7315099,
7315057,
7315079,
7315014,
7315100,
7315101,
7315132,
7315102,
7315133,
7315015,
7315016,
7315104,
7315134,
7315017,
7315071,
7315018,
7315019,
7315020,
7315054,
7315069,
7315021,
7315058,
7315052,
7315022,
7315078,
7315023,
7315024,
7315073,
7315105,
7315065,
7315106,
7315025,
7315066,
7315026,
7315027,
7315028,
7315067,
7315029,
7315030,
7315107,
7315135,
7315108,
7315031,
7315109,
7315032,
7315033,
7315034,
7315110,
7315074,
7315136,
7315111,
7315112,
7315075,
7315035,
7315127,
7315061,
7315036,
7315037,
7315129,
7315038,
7315130,
7315039,
7315041,
7315131,
7315040,
7315143,
7315042,
7315113,
7315114,
7315115,
7315043,
7315053,
7315055,
7315056,
7315116,
7315117,
7315080,
7315139,
7315064,
7315140,
7315044,
7315045,
7315118,
7315046,
7315148,
7315119,
7315047,
7315120,
7315059,
7315145,
7315076,
7315121,
7315048,
7315122,
7315123,
7315049,
7315124,
7315050,
7315125,
7315051,
7315126,
7315060,
7315149
],
"synonyms": [
"Dining",
"Eatery",
"Eating House",
"Eating Place"
]
}
]
}
Definitions
Name | Description |
---|---|
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Json |
Desired format of the response. Only |
Point |
POI category result |
Point |
This object is returned from a successful POI Category Tree call |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
JsonFormat
Desired format of the response. Only json
format is supported.
Name | Type | Description |
---|---|---|
json |
string |
PointOfInterestCategory
POI category result
Name | Type | Description |
---|---|---|
childCategoryIds |
integer[] |
Array of child category ids |
id |
integer |
Unique ID for the category. ID can be used to restrict search results to specific categories through other Search Service APIs, like Get Search POI. |
name |
string |
Name of the category |
synonyms |
string[] |
Array of alternative names of the category |
PointOfInterestCategoryTreeResult
This object is returned from a successful POI Category Tree call
Name | Type | Description |
---|---|---|
poiCategories |
Categories array |