Demographics data helpers for ArcGIS REST JS.
Install
npm install @esri/arcgis-rest-demographics
Import
@esri/arcgis-rest-demographics
is distributed as both ES Modules and Common JS modules.
import * as demographicsTools from "@esri/arcgis-rest-demographics"
const demographicsTools = require("@esri/arcgis-rest-demographics");
CDN
You can use @esri/arcgis-rest-demographics
as an ES Module from the esm.run CDN.
<script type="module">
import * as demographicsTools from "https://esm.run/@esri/arcgis-rest-demographics@4.0.3";
</script>
You can also use @esri/arcgis-rest-demographics
from a script tag. All exports will be added to a global arcgisRest
object.
<script
src="https://unpkg.com/@esri/arcgis-rest-demographics@4.0.3/dist/bundled/demographics.umd.min.js"
integrity="sha512-+m9laIT4kobFx85AuNViVijxH9/KuFEFJo+Sdw2s5WAR5Cr7+OiWWl3tqxnxpLA7NNJmXxdzOqIeQ7BGoAnarQ==">
</script>
Exports
- getAvailableCountries
- getAvailableDataCollections
- getAvailableGeographyLevels
- getGeography
- queryDemographicData
- IApportionmentThreshold
- IBranch
- ICategory
- ICountry
- IDataCollection
- IDataInfo
- IDataset
- IExtent
- IFeatureSet
- IFilter
- IFilteringTag
- IGeographyLevel
- IGeographyLevelHierarchy
- IGetAvailableCountriesOptions
- IGetAvailableCountriesResponse
- IGetAvailableDataCollectionsOptions
- IGetAvailableDataCollectionsResponse
- IGetAvailableGeographyLevelsResponse
- IGetGeographyOptions
- IGetGeographyResponse
- IHierarchy
- ILevel
- ILevelsInfo
- IMetadata
- IQueryDemographicDataOptions
- IQueryDemographicDataResponse
- IRequestOptions
- IVariablesInfo