getAvailableDataCollections

getAvailableDataCollections

Function
getAvailableDataCollections(requestOptions?IGetAvailableDataCollectionsOptions): Promise<IGetAvailableDataCollectionsResponse>

Used to determine the data collections available for usage with the Geoenrichment service. See the REST Documentation for more information.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { getAvailableDataCollections } from '@esri/arcgis-rest-demographics';

getAvailableDataCollections()
  .then((response) => {
    response; // => { DataCollections: [ ... ]  }
  });

getAvailableDataCollections({
  countryCode: "se",
  dataCollection: "EducationalAttainment"
})
  .then((response) => {
    response.; // => { DataCollections: [ ... ] }
  });
Parameters
ParameterTypeNotes
requestOptions
IGetAvailableDataCollectionsOptions

Options to pass through to the geoenrichment service.

Returns 
Promise<IGetAvailableDataCollectionsResponse>

A Promise that will resolve with data collections 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.