http://maasglobal.com/core/itinerary.json
OpenTripPlanner itinerary, augmented with leg bookings per leg
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
---|---|---|---|---|---|---|
Can be instantiated | Yes | Develop | No | Forbidden | Forbidden | core/itinerary.json |
http://maasglobal.com/core/itinerary.json
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
bookings | booking | Optional | No | itinerary (this schema) |
co2 | number |
Optional | No | itinerary (this schema) |
endTime | integer |
Required | No | itinerary (this schema) |
fares | fare | Optional | No | itinerary (this schema) |
id | id | Optional | No | itinerary (this schema) |
identityId | complex | Optional | No | itinerary (this schema) |
isOvertaken | boolean |
Optional | No | itinerary (this schema) |
legs | leg | Required | No | itinerary (this schema) |
productOptions | product-option | Optional | No | itinerary (this schema) |
signature | string |
Optional | No | itinerary (this schema) |
sourcePlanId | string |
Optional | No | itinerary (this schema) |
startTime | integer |
Required | No | itinerary (this schema) |
state | enum |
Optional | No | itinerary (this schema) |
type | enum |
Optional | No | itinerary (this schema) |
bookings
Array type: booking
All items must be of the type:
http://maasglobal.com/core/booking.json
Grams of CO2 as a byproduct by the trip
co2
number
number
0
POSIX time in milliseconds, https://en.wikipedia.org/wiki/Unix_time
endTime
integer
integer
1451606400
9007199254740991
fares
Array type: fare
All items must be of the type:
http://maasglobal.com/core/components/fare.json
id
http://maasglobal.com/core/components/units.json#/definitions/uuid
identityId
Any following options needs to be fulfilled.
string
All instances must conform to this regular expression
^[aepus]{2}-[\w]{4}-\d:[a-f\d]{8}(-[a-f\d]{4}){3}-[a-f\d]{12}$
string
All instances must conform to this regular expression
^[A-Fa-f0-9]{8}(-[A-Fa-f0-9]{4}){3}-[A-Fa-f0-9]{12}$
"eu-west-1:4828507e-683f-41bf-9d87-689808fbf958"
"4828507e-683f-41bf-9d87-689808fbf958"
isOvertaken
boolean
boolean
legs
0
items in the arrayArray type: leg
All items must be of the type:
http://maasglobal.com/core/leg.json
productOptions
0
items in the arrayArray type: product-option
All items must be of the type:
http://maasglobal.com/core/product-option.json
Signature of a signed object
signature
string
string
Universally unique identifier, see https://en.wikipedia.org/wiki/Universally_unique_identifier
sourcePlanId
string
string
All instances must conform to this regular expression
^[A-Fa-f0-9]{8}(-[A-Fa-f0-9]{4}){3}-[A-Fa-f0-9]{12}$
"4828507e-683f-41bf-9d87-689808fbf958"
POSIX time in milliseconds, https://en.wikipedia.org/wiki/Unix_time
startTime
integer
integer
1451606400
9007199254740991
The life-cycle state of an itinerary
state
enum
The value of this property must be equal to one of the known values below.
Value | Description |
---|---|
START |
|
PLANNED |
|
PAID |
|
ACTIVATED |
|
CANCELLED |
|
CANCELLED_WITH_ERRORS |
|
FINISHED |
type
enum
The value of this property must be equal to one of the known values below.
Value | Description |
---|---|
outward |
|
return |