- Variables are worked out as a proportion of the total variable (i.e, their heading)
- Calculated variables (e.g., median age) are retained
- Total variables are retained
- scripts/menu_list.py: Parses CSV to extract and structure characteristics.
- scripts/clean.py: Filters menu items based on valid IDs from the CSV.
- scripts/computed_values.py: Identifies and collects calculated variables from the CSV.
- scripts/intersect.py: Generates map data by intersecting areas and buildings.
- data/census/: Contains the raw census data in CSV format.
- src/database.ts: Processes CSV files and updates Redis.
- src/server.ts: Sets up an Express server to serve map tiles.
- src/statistics.ts: Calculates percentiles for menu items.
- Install dependencies:
npm install
pip install -r requirements.txt
- Build the TypeScript code:
npm run build
- Generate menu items and statistics:
python scripts/menu_list.py
npm run statistics
python scripts/clean.py
- Generate map data:
python scripts/intersect.py
- Create the database:
npm run create
- Start the server:
npm run start
This project is licensed under the MIT License.