getAvailableGeographyLevels
FunctiongetAvailableGeographyLevels(requestOptions?: IEndpointOptions): Promise<IGetAvailableGeographyLevelsResponse>
Returns a list of available geography data layers, which can then be used in getGeography(). See the REST Documentation for more information.
import { getAvailableGeographyLevels } from '@esri/arcgis-rest-demographics';
//
getAvailableGeographyLevels()
.then((response) => {
response; // => { geographyLevels: [ ... ] }
});
Parameters
Parameter | Type | Notes |
---|---|---|
request | IEndpointOptions | Options to pass through to the geoenrichment service. |
Returns
Promise<IGetAvailableGeographyLevelsResponse>
A Promise that will resolve with available geography levels for the request.