-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
First Read:
The Frontend team needs our API to test their map, but we don't have the routing math done yet. Build a "dummy" endpoint that just returns the hardcoded API JSON schema.
Definition of Done:
[ ] A POST /api/route endpoint exists.
[ ] It accepts a JSON request with start_coords and end_coords.
[ ] It returns this exact mock response:
{
"overall_safety_risk": 38,
"route_coordinates": [
{ "latitude": 32.9857, "longitude": -96.7501 },
{ "latitude": 32.9860, "longitude": -96.7505 },
{ "latitude": 32.9870, "longitude": -96.7510 }
],
"eta_minutes": 6
}
Reactions are currently unavailable