TOMP endpoints 1.6.x
Endpoints for TOMP API version 1.6.x
Alter the state of a leg
This endpoint must be used to alter the state of a leg.
Operations:
PREPARE the TO can send a message
|telling the MP that he is preparing the booked leg [To be implemented by the MP] (see (7.2) in the process flow - trip
|execution),
ASSIGN_ASSET can assign an asset to a leg. Can be to assign an asset in case there is still an asset type
|assigned [Optionally implementable by the MP]. See (4.7) in the process flow - trip execution
SET_IN_USE will activate
|the leg or resume the leg [TO and MP] (see (4.6) in process flow),
TIME_EXTEND will be used to request an extension in
|time; the end user wants to use the asset longer, the time field contains the new end time,
TIME_POSTPONE will be
|used to request a delay in the departure time, the end user wants to depart later, the time field contains the new
|departure time,
PAUSE will pause the leg [TO and MP] (see (4.6) in process flow),
OPEN_TRUNK request the TO to
|open up the trunk (of the scooter), e.g. to store the helmet
START_FINISHING will start the end-of-leg [Optionally
|implementable by TO and MP],
FINISH will end this leg (see (4.6) in process flow) [TO and MP]
path Parameters
idLeg identifier
Headers
Accept-LanguageA list of the languages/localizations the user would like to see the results in. For user privacy and ease of |use on the TO side, this list should be kept as short as possible, ideally just one language tag from the list in |operator/information
ApiAPI description, can be TOMP or maybe other (specific/derived) API definitions
Api-VersionVersion of the API.
maas-idThe ID of the sending maas operator
ET-Client-NameEntur Client Header.
It is required that all consumers identify themselves by using this header.
Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers.
The structure of ET-Client-Name should be: <company>-<application>.
X-Correlation-IdCorrelation id
addressed-toThe ID of the maas operator that has to receive this message
Alter the state of a leg › Request Body
timeeventAlter the state of a leg › Responses
operation successful
idThe unique identifier (TO) of this leg
departureTimeThe departure time of this leg. Or, in case of a parking, the start of the usage.
arrivalTimeThe intended arrival time at the to place. Or, in case of a parking, the end of the usage.
actualArrivalTimethe 'arrivalTime' can be used as 'plannedArrivalTime' whenever the leg has ended. Use this field to ease searching for discrepances between planned and actual arrival times
actualDepartureTimethe 'departureTime' can be used as 'plannedDepartureTime' whenever the leg has started. Use this field to ease searching for discrepances between planned and actual departure times
travelerReferenceNumbersreference to the travelers field of the request. If missing, it is refering to the first (if any). it is an array to facilitate multiple users on one leg (e.g. using a car). If multiple access informations are needed, please create a leg per used asset.
legSequenceNumberThe order of the leg in the booking. There can be multiple legs with the same sequence (different user or parallel usage (eg. parking lot and a bike)).
conditionsThe conditions that apply to this leg, there may be more conditions in a parent booking and planning object (if this is returned as part of those)
statedepartureDelayA duration of some time (relative to a time) in milliseconds
arrivalDelayA duration of some time (relative to a time) in milliseconds
distanceThe estimated distance travelled in the leg (in meters)
progressGeometryAn array of WGS84 coordinate pairs
Additional information a TO can send to a customer (instructions, sales info, ...)
memoAlter the state of a leg
This endpoint must be used to alter the state of a leg.
Operations:
PREPARE the TO can send a message
|telling the MP that he is preparing the booked leg [To be implemented by the MP] (see (7.2) in the process flow - trip
|execution),
ASSIGN_ASSET can assign an asset to a leg. Can be to assign an asset in case there is still an asset type
|assigned [Optionally implementable by the MP]. See (4.7) in the process flow - trip execution
SET_IN_USE will activate
|the leg or resume the leg [TO and MP] (see (4.6) in process flow),
TIME_EXTEND will be used to request an extension in
|time; the end user wants to use the asset longer, the time field contains the new end time,
TIME_POSTPONE will be
|used to request a delay in the departure time, the end user wants to depart later, the time field contains the new
|departure time,
PAUSE will pause the leg [TO and MP] (see (4.6) in process flow),
OPEN_TRUNK request the TO to
|open up the trunk (of the scooter), e.g. to store the helmet
START_FINISHING will start the end-of-leg [Optionally
|implementable by TO and MP],
FINISH will end this leg (see (4.6) in process flow) [TO and MP]
path Parameters
idLeg identifier
Headers
Accept-LanguageA list of the languages/localizations the user would like to see the results in. For user privacy and ease of |use on the TO side, this list should be kept as short as possible, ideally just one language tag from the list in |operator/information
ApiAPI description, can be TOMP or maybe other (specific/derived) API definitions
Api-VersionVersion of the API.
maas-idThe ID of the sending maas operator
ET-Client-NameEntur Client Header.
It is required that all consumers identify themselves by using this header.
Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers.
The structure of ET-Client-Name should be: <company>-<application>.
X-Correlation-IdCorrelation id
addressed-toThe ID of the maas operator that has to receive this message
Alter the state of a leg › Request Body
timeeventAlter the state of a leg › Responses
operation successful
idThe unique identifier (TO) of this leg
departureTimeThe departure time of this leg. Or, in case of a parking, the start of the usage.
arrivalTimeThe intended arrival time at the to place. Or, in case of a parking, the end of the usage.
actualArrivalTimethe 'arrivalTime' can be used as 'plannedArrivalTime' whenever the leg has ended. Use this field to ease searching for discrepances between planned and actual arrival times
actualDepartureTimethe 'departureTime' can be used as 'plannedDepartureTime' whenever the leg has started. Use this field to ease searching for discrepances between planned and actual departure times
travelerReferenceNumbersreference to the travelers field of the request. If missing, it is refering to the first (if any). it is an array to facilitate multiple users on one leg (e.g. using a car). If multiple access informations are needed, please create a leg per used asset.
legSequenceNumberThe order of the leg in the booking. There can be multiple legs with the same sequence (different user or parallel usage (eg. parking lot and a bike)).
conditionsThe conditions that apply to this leg, there may be more conditions in a parent booking and planning object (if this is returned as part of those)
statedepartureDelayA duration of some time (relative to a time) in milliseconds
arrivalDelayA duration of some time (relative to a time) in milliseconds
distanceThe estimated distance travelled in the leg (in meters)
progressGeometryAn array of WGS84 coordinate pairs
Additional information a TO can send to a customer (instructions, sales info, ...)
memodescribes the running implementations
all versions that are implemented on this url, are described in the result of this endpoint. In contains all |versions and per version the endpoints, their status and the supported scenarios.
Headers
Accept-LanguageA list of the languages/localizations the user would like to see the results in. For user privacy and ease of |use on the TO side, this list should be kept as short as possible, ideally just one language tag from the list in |operator/information
maas-idThe ID of the sending maas operator
ET-Client-NameEntur Client Header.
It is required that all consumers identify themselves by using this header.
Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers.
The structure of ET-Client-Name should be: <company>-<application>.
X-Correlation-IdCorrelation id
addressed-toThe ID of the maas operator that has to receive this message
describes the running implementations › Responses
successful operation
versionbaseUrlscenariosdescribes the running implementations
all versions that are implemented on this url, are described in the result of this endpoint. In contains all |versions and per version the endpoints, their status and the supported scenarios.
Headers
Accept-LanguageA list of the languages/localizations the user would like to see the results in. For user privacy and ease of |use on the TO side, this list should be kept as short as possible, ideally just one language tag from the list in |operator/information
maas-idThe ID of the sending maas operator
ET-Client-NameEntur Client Header.
It is required that all consumers identify themselves by using this header.
Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers.
The structure of ET-Client-Name should be: <company>-<application>.
X-Correlation-IdCorrelation id
addressed-toThe ID of the maas operator that has to receive this message
describes the running implementations › Responses
successful operation
versionbaseUrlscenarios