Porto route prediction
Cabrynt
Route-aware trip prediction, delivered through ASP.NET Core.
The quote API combines road routing, quote-time context, ONNX inference, and PostgreSQL persistence.

A backend workflow with an ML prediction step.
Route request
Coordinates and ride details
ASP.NET Core quote API
Validation and orchestration
OSRM + weather context
Road baseline and features
ONNX correction
Residual prediction
PostgreSQL snapshot
Persisted quote response
The API validates Porto-scoped coordinates, calculates the road-route baseline, applies the model only when its dependencies are available, and persists the displayed quote when a ride request is created.
Model performance
The deployed model was trained on 200,000 route-ready historical Porto trips and evaluated on a separate set of 5,000 unseen trips.
Improvement
38% lower MAE
| Model | MAE | Median absolute error | P90 absolute error |
|---|---|---|---|
| Direct OSRM | 5.488 min | 3.530 min | 10.817 min |
| OSRM + ML residual correction | 3.383 min | 1.656 min | 6.702 min |
2.105 minutes lower MAE than direct OSRM on the final held-out evaluation set.
Open live model demo