bamcensus

Crates.iobamcensus
lib.rsbamcensus
version0.1.0
created_at2025-08-19 22:19:33.406656+00
updated_at2025-08-19 22:19:33.406656+00
descriptionThe Behavior and Advanced Mobility Census Dataset Aggregator
homepage
repository
max_upload_size
id1802576
size102,070
Rob Fitzgerald (robfitzgerald)

documentation

README

Bamcensus

Executables that pull together the bamcensus crates. Can be used:

  1. as a command line application (CLI) - see installation below
  2. 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:

./target/release/acs_tiger_app --geoids=08031,08059 --year=2020 --acs-query=NAME,B01001_001E --acs-type=five-year --output-resolution=census-tract --output-file=output.csv

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:

./target/release/lodes_tiger_app wac --geoids=08031 --year=2020 --output-resolution=census-tract
Commit count: 0

cargo fmt