Skip to content

Latest commit

 

History

History
43 lines (37 loc) · 1.5 KB

README.md

File metadata and controls

43 lines (37 loc) · 1.5 KB

Postal Code Data for MyCovidStory.ca

Static data for MyCovidStory.ca, including postal codes and electoral districts. The data is versioned along with the script that fetched, processed, and mapped it.

Quick start

  1. Clone the repository.
  2. Install dependencies.
  3. Run the script to see all supported commands.
git clone https://github.com/my-covid-story/postal-data
cd postal-data
npm install
./postal.js

Data overview

data/
├── elections.on.ca/     ED and MPP data fetched from Elections Ontario
│   ├── ed-raw.json      Electoral District JSON data (ed-fetch)
│   ├── fsa-ed-k0a.json  One JSON file per FSA, mapping to EDs (ed-mpp-search)
│   ├── fsa-ed-k0b.json
│   │   ...
│   ├── fsa-ed-p9n.json
│   ├── mpp-001.html     One HTML file per ED, describing the MPP (mpp-fetch)
│   ├── mpp-002.html
│   │   ...
│   └── mpp-124.html
├── wikipedia.org/       FSA HTML pages fetched from Wikipedia
│   ├── fsa-a.html       One file per valid first letter (fsa-fetch)
│   ├── fsa-b.html
│   │   ...
│   └── fsa-y.html
├── ed.json              ED JSON data enriched with MPP details (ed-mpp-enrich)
├── fsa.json             FSA JSON data scraped from HTML pages (fsa-scrape)
├── fsa-ed.json          Aggregated FSA-ED mappings (ed-mpp-aggregate)
├── ldu.json             JSON list of all valid LDUs (ldu-generate)
└── postal-data.json     Full data export (data-export)