-
Notifications
You must be signed in to change notification settings - Fork 41
Trip execution phase on route
home > Trip execution phase > On route
After the asset is in use, the end user can travel. In some scenarios it is requested that the end user can pause and resume the trip. This can also be done by using the same end point for starting the leg.
Step 1: pausing the asset
POST https://exampleTO.com/legs/746ac-48792bb-746dac3/events
{
"operation": "PAUSE",
"asset": {
"assetId": "bike1",
"place": {
"coordinates": {
"lng": 6.169639,
"lat": 52.253279
}
}
}
}
Step 2: Resuming can be done by using again the 'SET_IN_USE' operation:
POST https://exampleTO.com/legs/746ac-48792bb-746dac3/events/
{
"operation": "SET_IN_USE",
"asset": {
"assetId": "bike1",
"place": {
"coordinates": {
"lng": 6.169639,
"lat": 52.253279
}
}
}
}
From version 1.1 there is also a facility to use the operations 'TIME_EXTEND' and 'TIME_POSTPONE'. The first one asks the TO to extend the rental period a bit, until the timestamp in the time
field.
POST https://exampleTO.com/legs/746ac-48792bb-746dac3/events/
{
"operation": "TIME_EXTEND",
"time": "2017-07-21T17:32:28Z"
}
Or, to ask if the asset can be picked up a bit later:
POST https://exampleTO.com/legs/746ac-48792bb-746dac3/events/
{
"operation": "TIME_POSTPONE",
"time": "2017-07-21T17:32:28Z"
}
Introduction
- Roadmap
- Semantic versioning
- Use cases
- Changes per version
- Contribution
- Participants
Workflow
- Operator information
- Planning phase
- Booking phase
- Trip execution phase - start
- Trip execution phase - on route
- Trip execution phase - end
- Support
- Payment
Points of attention
- Modalities
- Specifying locations
- GDPR
Eco system
- Relations
Introduction
Scope of the TOMP-API
Versioning and releases
Process Flows
- Authentication
- Operator Information
- Privacy and Registration
- Planning Module
- Booking Module
- Trip Execution Module
- Payment Module
- Support Module
Meta-Information
Reference implementations
To-dos and risks
Technical Specifications
A1 List of terms and definitions
A2 Passenger characteristics dictionary
A3 APIs available on the transportation ecosystem
A4 Overview of the User stories
A5 Authors, Architects, collaborators and stakeholders involved
A6 Adoption and Implementation of the TOMP-API