pip install -r requirements.txtcd app && bun installcp .env.example .env- Get a 511 API token at https://511.org/open-data/token and put into
.env - Ensure you are at project root then run
python pipeline.py
cd app/api && fastapi devcd app && bun dev
Curl request for testing
curl -X POST "http://localhost:8000/predict" \
-H "Content-Type: application/json" \
-d '{
"temperature": 12.896,
"precipitation_probability": 0.0,
"precipitation": 0.0,
"wind_speed": 6.725,
"wind_gusts": 6.84,
"wind_direction": 15.524,
"visibility": 18700.0,
"weather_code": 0,
"vehicle_id": 601,
"stop_sequence": 2,
"route_id": 3,
"direction_id": 0,
"from_stop_id": 70271,
"to_stop_id": 70261,
"hour": 6,
"minute": 56,
"day": 1,
"month": 3
}'