Bamcensus
Executables that pull together the bamcensus crates. Can be used:
- as a command line application (CLI) - see installation below
- programmatically from Rust code -
Installation
Build these command line applications using Cargo (for example, via rustup):
$ cargo build -r
Usage
acs_tiger_app
This binary queries ACS data and joins it with TIGER/Line geometries for specified GEOIDs.
Arguments:
--geoids(required): Comma-separated list of GEOIDs.--output-resolution: Geospatial resolution for output (e.g., tract, county).--year(required): Year of ACS/TIGER data.--acs-query(required): Comma-separated ACS columns to retrieve.--acs-type(required): One or five year estimates.--acs-token: Optional API token for the ACS API.--output-file: Output file path (default: auto-generated).
Example:
lodes_tiger_app
This binary queries LODES data and joins it with TIGER/Line geometries.
Subcommands:
wac: Workplace Area Characteristics (WAC) data.
WAC Arguments:
--geoids: Comma-separated list of GEOIDs (optional, defaults to all states).--output-resolution: Geospatial wildcard (e.g., county).--year(required): Year of LODES data.--wac-segments(required): Comma-separated WAC segments.--edition: LODES edition (optional).--segment: Workforce segment (optional).--jobtype: Job type (optional).
Example: