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 |
http://maasglobal.com/maas-backend/routes/routes-query/request.json
http://maasglobal.com/core/components/units.jsonhttp://maasglobal.com/core/components/api-common.json| 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
http://maasglobal.com/core/components/units.json#/definitions/timearriveByReturn
http://maasglobal.com/core/components/units.json#/definitions/timebookingId to fetch possible extension options for
bookingIdToExtend
http://maasglobal.com/core/components/units.json#/definitions/uuidfrom
http://maasglobal.com/core/components/units-geo.json#/definitions/shortLocationStringComponentized from address
fromAddress
http://maasglobal.com/core/components/address.json#/definitions/componentAddressfromName
http://maasglobal.com/core/components/address.json#/definitions/placeNamefromStationId
http://maasglobal.com/core/components/station.json#/definitions/idleaveAt
http://maasglobal.com/core/components/units.json#/definitions/timeleaveAtReturn
http://maasglobal.com/core/components/units.json#/definitions/timemodes
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
PUBLIC_TRANSIT |
|
TAXI |
|
CAR |
|
WALK |
|
BICYCLE |
|
BICYCLE_RENT |
options
objectobject with following properties:
| Property | Type | Required | | ——– | —- | ——– |
to
http://maasglobal.com/core/components/units-geo.json#/definitions/shortLocationStringComponentized to address
toAddress
http://maasglobal.com/core/components/address.json#/definitions/componentAddresstoName
http://maasglobal.com/core/components/address.json#/definitions/placeNametoStationId
http://maasglobal.com/core/components/station.json#/definitions/idtransitMode
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
TRAIN |
|
BUS |
|
SUBWAY |
|
TRAM |
|
RAIL |
| 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
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
Accept |
Optional | |
X-Whim-User-Agent |
Optional |
Accept
#/definitions/acceptHeaderX-Whim-User-Agent
#/definitions/userAgentHeaderidentityId
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"
payload
objectobject 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
http://maasglobal.com/core/components/units.json#/definitions/timearriveByReturn
http://maasglobal.com/core/components/units.json#/definitions/timebookingId to fetch possible extension options for
bookingIdToExtend
http://maasglobal.com/core/components/units.json#/definitions/uuidfrom
http://maasglobal.com/core/components/units-geo.json#/definitions/shortLocationStringComponentized from address
fromAddress
http://maasglobal.com/core/components/address.json#/definitions/componentAddressfromName
http://maasglobal.com/core/components/address.json#/definitions/placeNamefromStationId
http://maasglobal.com/core/components/station.json#/definitions/idleaveAt
http://maasglobal.com/core/components/units.json#/definitions/timeleaveAtReturn
http://maasglobal.com/core/components/units.json#/definitions/timemodes
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
PUBLIC_TRANSIT |
|
TAXI |
|
CAR |
|
WALK |
|
BICYCLE |
|
BICYCLE_RENT |
options
objectobject with following properties:
| Property | Type | Required | | ——– | —- | ——– |
to
http://maasglobal.com/core/components/units-geo.json#/definitions/shortLocationStringComponentized to address
toAddress
http://maasglobal.com/core/components/address.json#/definitions/componentAddresstoName
http://maasglobal.com/core/components/address.json#/definitions/placeNametoStationId
http://maasglobal.com/core/components/station.json#/definitions/idtransitMode
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
TRAIN |
|
BUS |
|
SUBWAY |
|
TRAM |
|
RAIL |