getAvailableGeographyLevels

getAvailableGeographyLevels

getAvailableGeographyLevels(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.

Use dark colors for code blocksCopy
      
1
2
3
4
5
6
import { getAvailableGeographyLevels } from '@esri/arcgis-rest-demographics';
//
getAvailableGeographyLevels()
  .then((response) => {
    response; // => { geographyLevels: [ ... ]  }
  });
Parameters
ParameterTypeNotes
requestOptions
IEndpointOptions

Options to pass through to the geoenrichment service.

Returns 
Promise<IGetAvailableGeographyLevelsResponse>

A Promise that will resolve with available geography levels for the request.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.