Skip to content

developmentseed/spatial-access-measures

Repository files navigation

Spatial Access Measures

👉 Try the Live Demo

Spatial Access Measures is a Statistics Canada dataset that shows how easy it is to reach essential places like jobs, schools, healthcare, and stores using public transit, cycling, or walking. Refer to the methodology report to see how the data was created.

This project reimagines access to the SAM dataset by transforming the bulky CSVs into a lightweight, spatially-aware GeoParquet format. With this, users can run SQL queries directly in their browser—filtering, mapping, and exploring accessibility metrics for neighborhoods across Canada, all without any server backend.

Screenshot of the Vancouver Accessibility Map

Data Transformation

See the notebooks directory for Jupyter notebooks on how CSV data was transformed into WKB encoded GeoParquet files.

Technical Details

The app involves:

  • Cloud-hosted GeoParquet dataset
  • DuckDB-WASM for in-browser SQL analytics
  • Apache Arrow tables piped directly into Deck.GL for rendering
  • No backend server: everything runs in the browser

Full implementation notes are available in Technical.md.

Run Locally

Minimum Node 23 required. Install Node using nvm.

pnpm install     # install dependencies
pnpm dev         # start local dev server

Acknowledgments

  • Statistics Canada for the Spatial Access Measures dataset
  • DuckDB for enabling fast, in-browser SQL analytics via DuckDB-WASM
  • Deck.GL for high-performance GPU-based geospatial visualizations
  • GeoArrow for efficient binary geospatial data interchange using Arrow format
  • Apache Arrow for powering the columnar data pipeline between DuckDB and Deck.GL

License

Licensed under MIT. Contributions welcome!

About

Visualization of Statistics Canada Spatial Access Measures

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •