https://github.com/miniscruff/bart-vs-car
Compare the cost of taking BART versus driving and parking a car.
https://github.com/miniscruff/bart-vs-car
Last synced: 9 months ago
JSON representation
Compare the cost of taking BART versus driving and parking a car.
- Host: GitHub
- URL: https://github.com/miniscruff/bart-vs-car
- Owner: miniscruff
- Created: 2022-05-22T01:00:45.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-22T01:43:32.000Z (about 4 years ago)
- Last Synced: 2025-02-06T12:30:15.076Z (over 1 year ago)
- Language: Python
- Homepage: https://miniscruff.github.io/bart-vs-car/
- Size: 68.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bart Vs Car
Compare the efficiency of riding BART versus driving a car.
## How to run
1. Run a local server using python: `python3 -m http.server`
## How to fetch data
1. Configure environment:
1. Can create `.env` file or export env vars
1. `BART_API_KEY` from [BART API](https://api.bart.gov/api/register.aspx)
1. `GRAPH_HOPPER_API_KEY` from [Graph Hopper](https://graphhopper.com/dashboard/#/signup)
1. Create virtual env: `python -m venv venv`
1. Activate virtual env: `source venv/bin/activate` ( on linux )
1. Install packages: `pip install -r requirements.txt`
1. Run fetch, and wait: `python fetch.py`