maas-schemas

request Schema

http://maasglobal.com/maas-backend/routes/routes-query/request.json

Request schema for routes query

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated Yes Develop No Forbidden Permitted maas-backend/routes/routes-query/request.json

Schema Hierarchy

request Definitions

Property Type Group
arriveBy time http://maasglobal.com/maas-backend/routes/routes-query/request.json#/definitions/payload
arriveByReturn time http://maasglobal.com/maas-backend/routes/routes-query/request.json#/definitions/payload
bookingIdToExtend uuid http://maasglobal.com/maas-backend/routes/routes-query/request.json#/definitions/payload
from shortLocationString http://maasglobal.com/maas-backend/routes/routes-query/request.json#/definitions/payload
fromAddress componentAddress http://maasglobal.com/maas-backend/routes/routes-query/request.json#/definitions/payload
fromName placeName http://maasglobal.com/maas-backend/routes/routes-query/request.json#/definitions/payload
fromStationId id http://maasglobal.com/maas-backend/routes/routes-query/request.json#/definitions/payload
leaveAt time http://maasglobal.com/maas-backend/routes/routes-query/request.json#/definitions/payload
leaveAtReturn time http://maasglobal.com/maas-backend/routes/routes-query/request.json#/definitions/payload
modes enum http://maasglobal.com/maas-backend/routes/routes-query/request.json#/definitions/payload
options object http://maasglobal.com/maas-backend/routes/routes-query/request.json#/definitions/payload
to shortLocationString http://maasglobal.com/maas-backend/routes/routes-query/request.json#/definitions/payload
toAddress componentAddress http://maasglobal.com/maas-backend/routes/routes-query/request.json#/definitions/payload
toName placeName http://maasglobal.com/maas-backend/routes/routes-query/request.json#/definitions/payload
toStationId id http://maasglobal.com/maas-backend/routes/routes-query/request.json#/definitions/payload
transitMode enum http://maasglobal.com/maas-backend/routes/routes-query/request.json#/definitions/payload

arriveBy

arriveBy

arriveBy Type

arriveByReturn

arriveByReturn

arriveByReturn Type

bookingIdToExtend

bookingId to fetch possible extension options for

bookingIdToExtend

bookingIdToExtend Type

from

from

from Type

fromAddress

Componentized from address

fromAddress

fromAddress Type

fromName

fromName

fromName Type

fromStationId

fromStationId

fromStationId Type

leaveAt

leaveAt

leaveAt Type

leaveAtReturn

leaveAtReturn

leaveAtReturn Type

modes

modes

The value of this property must be equal to one of the known values below.

modes Known Values

Value Description
PUBLIC_TRANSIT  
TAXI  
CAR  
WALK  
BICYCLE  
BICYCLE_RENT  

options

options

options Type

object with following properties:

| Property | Type | Required | | ——– | —- | ——– |

to

to

to Type

toAddress

Componentized to address

toAddress

toAddress Type

toName

toName

toName Type

toStationId

toStationId

toStationId Type

transitMode

transitMode

The value of this property must be equal to one of the known values below.

transitMode Known Values

Value Description
TRAIN  
BUS  
SUBWAY  
TRAM  
RAIL  

request Properties

Property Type Required Nullable Defined by
headers object Optional No request (this schema)
identityId complex Required No request (this schema)
payload object Required No request (this schema)
* any Additional Yes this schema allows additional properties

headers

headers

headers Type

object with following properties:

Property Type Required
Accept   Optional
X-Whim-User-Agent   Optional

Accept

Accept

Accept Type

X-Whim-User-Agent

X-Whim-User-Agent

X-Whim-User-Agent Type

identityId

identityId

identityId Type

Any following options needs to be fulfilled.

Option 1

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}$

Option 2

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}$

identityId Examples

"eu-west-1:4828507e-683f-41bf-9d87-689808fbf958"
"4828507e-683f-41bf-9d87-689808fbf958"

payload

payload

payload Type

object with following properties:

Property Type Required
arriveBy   Optional
arriveByReturn   Optional
bookingIdToExtend   Optional
from   Required
fromAddress   Optional
fromName   Optional
fromStationId   Optional
leaveAt   Optional
leaveAtReturn   Optional
modes string Optional
options object Optional
to   Required
toAddress   Optional
toName   Optional
toStationId   Optional
transitMode string Optional

arriveBy

arriveBy

arriveBy Type

arriveByReturn

arriveByReturn

arriveByReturn Type

bookingIdToExtend

bookingId to fetch possible extension options for

bookingIdToExtend

bookingIdToExtend Type

from

from

from Type

fromAddress

Componentized from address

fromAddress

fromAddress Type

fromName

fromName

fromName Type

fromStationId

fromStationId

fromStationId Type

leaveAt

leaveAt

leaveAt Type

leaveAtReturn

leaveAtReturn

leaveAtReturn Type

modes

modes

The value of this property must be equal to one of the known values below.

modes Known Values
Value Description
PUBLIC_TRANSIT  
TAXI  
CAR  
WALK  
BICYCLE  
BICYCLE_RENT  

options

options

options Type

object with following properties:

| Property | Type | Required | | ——– | —- | ——– |

to

to

to Type

toAddress

Componentized to address

toAddress

toAddress Type

toName

toName

toName Type

toStationId

toStationId

toStationId Type

transitMode

transitMode

The value of this property must be equal to one of the known values below.

transitMode Known Values
Value Description
TRAIN  
BUS  
SUBWAY  
TRAM  
RAIL