Vehicle Boarding / Deboarding#
The Fleet API supports configurable flows for boarding and deboarding a Vehicle at a Waypoint, including how Passengers board and deboard, and which checks must pass before the Vehicle drives on. Several steps can be configured per Waypoint or per Waypoint Action in the UpdateWaypoints request.
Waypoint Completion Flow#
Before a Vehicle leaves a Waypoint, the system makes sure the cabin is safe to start driving. The automatic checks (e.g. that the doors are closed) always run. You can also configure which extra checks must pass before the Waypoint is completed. Set the waypoint_completion_flow field per Waypoint in the UpdateWaypoints request. The value you set is returned on the Waypoint of the Vehicle’s Mission.
Configurable Checks#
The WaypointCompletionFlow holds a list of required_checks. The following checks are supported:
manual_cabin_safety_check– An Operator confirms that the cabin is ready to start driving to the next Waypoint and that all expected boarding actions are completed. If the cabin is already in a safe state (e.g. the doors were never opened), no Operator confirmation is needed.start_ride– The API user must confirm the start of the ride with aSendStartRideCommand(see Manual Start Ride Confirmation).
These rules apply:
Not set – If
waypoint_completion_flowis not set, a manual cabin safety check is required. This is the default.Empty list – If
required_checksis empty, no extra check is required. The Waypoint is completed once all Waypoint Actions are done and the automatic checks have passed.Multiple checks – All listed checks must pass (logical AND) before the Waypoint is completed.
No duplicates – Each check type may appear at most once. A request with duplicate check types is rejected with
INVALID_ARGUMENTand the reasonMISSION_UPDATE_BAD_WAYPOINT_COMPLETION_FLOW.
The example below shows a Waypoint in an UpdateWaypoints request that needs a start ride confirmation instead of a manual cabin safety check:
{
"actions": [
{
"pickup": {
"ride_id": "00eedc02-b670-41c5-af64-b066994b9ab7-ride",
"promised_arrival_time": {
"start_time": { "seconds": "1710339813" },
"end_time": { "seconds": "1710340113" }
}
}
}
],
"location": {
"labels": {
"de": "Elligersweg 23",
"en": "Elligersweg 23"
},
"location": {
"latitude": 53.604013,
"longitude": 10.043214,
"heading": 85
}
},
"waypoint_completion_flow": {
"required_checks": [
{ "start_ride": {} }
]
}
}
To require both checks, list both entries:
{
"waypoint_completion_flow": {
"required_checks": [
{ "manual_cabin_safety_check": {} },
{ "start_ride": {} }
]
}
}
To require no extra check, send an empty list:
{
"waypoint_completion_flow": {
"required_checks": []
}
}
Manual Start Ride Confirmation#
If the Waypoint Completion Flow of a Waypoint includes the start_ride check, the Vehicle does not leave the Waypoint until the API user has confirmed the start of the ride. Use this, for example, when the Passenger should confirm in a Mobility App that they are seated and ready to go.
Note
The start_ride check is only supported on Waypoints with a Pickup Waypoint Action, for Vehicles that support the start ride flow.
Vehicle Ready When all other checks for the Waypoint have passed, the Vehicle emits a
WaitingForStartRideCommandevent:If
manual_cabin_safety_checkis also required, the event is emitted once the Operator has completed the cabin safety check.If
start_rideis the only required check, the event is emitted once the automatic cabin checks have passed (e.g. the doors are closed).
The event includes a unique
request_idthat correlates the steps of this flow.Start Command The API user issues a
SendStartRideCommandto the Fleet API.The command includes the
request_idfrom the previous event.This triggers the Vehicle to commence the ride.
Confirmation A
StartRideCommandProcessedevent is emitted, confirming the ride has started.The event includes the
request_idfor tracking.
Boarding Preparation#
Boarding preparation makes sure that the Passenger assigned to a Ride is at the Vehicle and authenticated before the doors open. Depending on the Vehicle, authentication is either performed by the Vehicle itself (for example an NFC tap or a PIN entry) or confirmed by the API user through the Fleet API (for example after a Mobility App has verified the Passenger).
Boarding Preparation Capabilities#
A Vehicle advertises which boarding preparation methods it supports for a Ride. The capabilities are sent in the BoardingPreparationStarted event, once boarding preparation for that Ride has started.
Capability |
Description |
|---|---|
|
The API user completes boarding preparation with a |
|
The Passenger authenticates with an NFC tap at the Vehicle. |
|
The Passenger’s device authenticates with the Vehicle via Bluetooth Low Energy. |
|
The Passenger enters a PIN on the Vehicle’s PIN pad. |
The capabilities are set by the Vehicle and can’t be selected by the API user. Your client should support every method it expects to meet in your Fleet, and use the ones listed in the event.
Boarding Preparation Timing#
The following fields on the Pickup Waypoint Action control when boarding happens and how it affects the Mission’s estimated arrival times:
boarding_preparation_allowed_from– Boarding preparation, including Passenger authentication, starts no earlier than this time, even if the Vehicle reaches the Waypoint earlier.no_show_allowed_from– From this time on, the Passenger can be marked as a no-show.
Boarding Preparation Flow#
1. Boarding Preparation Data Provisioning#
When a Ride is assigned to a Vehicle, a BoardingPreparationDataUpdated event is emitted. It carries the authentication data the Passenger needs to authenticate at the Vehicle, for example the PIN code or the payload for NFC and BLE.
The event is sent early so that clients can distribute the data to the Passenger before the Vehicle arrives. It is emitted again whenever the data changes.
2. Boarding Preparation Start#
Once the Vehicle has reached the pick-up Waypoint (WaypointReached) and boarding_preparation_allowed_from has passed, the Vehicle starts boarding preparation and emits a BoardingPreparationStarted event. The event contains:
boarding_preparation_capabilities– The methods the Vehicle supports for this Ride.authentication_data– The same authentication data as inBoardingPreparationDataUpdated. Clients that did not store the data from step 1 can use this instead.
3. Passenger Authentication#
How the Passenger is authenticated depends on the capabilities listed in BoardingPreparationStarted.
Vehicle-Based Authentication (NFC, BLE, PIN Pad)#
The Passenger, or the Passenger’s app, authenticates directly at the Vehicle using the authentication data from step 1 or 2. No call to the Fleet API is needed.
API-Triggered Boarding Preparation#
If the Vehicle advertises BOARDING_PREPARATION_CAPABILITY_API, the API user can complete boarding preparation by sending a SendBoardingPreparationSuccessful command with the vehicle_id, fleet_id, and ride_id. This overrides the authentication methods on the Vehicle and marks authentication for the Ride as successful.
Note
The API user is responsible for making sure that the Passenger is physically at the Vehicle and properly authenticated before sending this command. The doors open as a result.
4. Boarding Preparation Completion#
When authentication has succeeded, a BoardingPreparationCompleted event is emitted and the doors open.
Deboarding#
For each Dropoff Waypoint Action, a Passenger deboarding needs to take place. The doors open (unless this is skipped) and Passengers depart.
Skipping Automatic Door Opening on Drop-off#
By default, the doors open as soon as the Vehicle has reached a drop-off Waypoint. To skip this, set skip_automatic_door_opening to true on the Dropoff Waypoint Action. The doors then stay closed when the Vehicle arrives, and Passengers have to open them manually.
{
"dropoff": {
"ride_id": "00eedc02-b670-41c5-af64-b066994b9ab7-ride",
"promised_arrival_time": {
"start_time": { "seconds": "1710340713" },
"end_time": { "seconds": "1710341013" }
},
"skip_automatic_door_opening": true
}
}
Note
This setting only works for AD Vehicles that support automatic door opening. For all other Vehicles it has no effect.
Early Drop-off#
To mark a drop-off that happens before the Ride’s originally booked destination, set early_dropoff to true on the Dropoff Waypoint Action. If not set, early_dropoff is false and the drop-off takes place at the originally booked destination.
{
"dropoff": {
"ride_id": "00eedc02-b670-41c5-af64-b066994b9ab7-ride",
"promised_arrival_time": {
"start_time": { "seconds": "1710340713" },
"end_time": { "seconds": "1710341013" }
},
"early_dropoff": true
}
}
The value you set is returned on the Dropoff Waypoint Action of the Vehicle’s Mission.