getCategory
FunctiongetCategory(requestOptions: IGetCategoryOptions): Promise<IGetCategoryResponse>
Returns details about a single category by Id.
import { getCategories } from "@esri/arcgis-rest-places";
import { ApiKeyManager } from "@esri/arcgis-rest-request";
const response = getCategory({
categoryId: "10000",
authentication: ApiKeyManager.fromKey("YOUR_API_KEY")
});
console.log(response);
Parameters
Parameter | Type |
---|---|
request | IGetCategoryOptions |
Returns
Promise<IGetCategoryResponse>