getAvailableDataCollections
FunctiongetAvailableDataCollections(requestOptions?: IGetAvailableDataCollectionsOptions): Promise<IGetAvailableDataCollectionsResponse>
Used to determine the data collections available for usage with the Geoenrichment service. See the REST Documentation for more information.
import { getAvailableDataCollections } from '@esri/arcgis-rest-demographics';
getAvailableDataCollections()
.then((response) => {
response; // => { DataCollections: [ ... ] }
});
getAvailableDataCollections({
countryCode: "se",
dataCollection: "EducationalAttainment"
})
.then((response) => {
response.; // => { DataCollections: [ ... ] }
});
Parameters
Parameter | Type | Notes |
---|---|---|
request | IGetAvailableDataCollectionsOptions | Options to pass through to the geoenrichment service. |
Returns
Promise<IGetAvailableDataCollectionsResponse>
A Promise that will resolve with data collections for the request.