|
| | __construct () |
| |
| | predict (string $roomDepartureCode, string $roomArrivalCode, string $departureTime) |
| |
◆ __construct()
| App\Services\PredictionService::__construct |
( |
| ) |
|
◆ fallbackPrediction()
| App\Services\PredictionService::fallbackPrediction |
( |
string |
$roomDepartureCode, |
|
|
string |
$roomArrivalCode |
|
) |
| |
|
private |
Simple heuristic fallback: 5 minutes base + up to 10 minutes based on room IDs.
◆ predict()
| App\Services\PredictionService::predict |
( |
string |
$roomDepartureCode, |
|
|
string |
$roomArrivalCode, |
|
|
string |
$departureTime |
|
) |
| |
Get the predicted delivery time (in minutes) between two rooms. Falls back to a default heuristic if the prediction service is unavailable.
◆ $baseUrl
| string App\Services\PredictionService::$baseUrl |
|
private |
The documentation for this class was generated from the following file: