maas-schemas

response Schema

http://maasglobal.com/tsp/stations-retrieve/response.json

MaaS stations query response schema

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated No Develop No Forbidden Permitted tsp/stations-retrieve/response.json

response Properties

Property Type Required Nullable Defined by
station object Optional No response (this schema)
* any Additional Yes this schema allows additional properties

station

Detailed station schema, coming as stations-retrieve response

station

station Type

object with following properties:

Property Type Required
address   Optional
agencyId   Required
city   Optional
code string Optional
country   Optional
facilities array Optional
id string Required
location   Required
name string Optional
openingHours object Optional
platformCode anyOf Optional
services array Optional
timetables array Optional
zone anyOf Optional

address

address

address Type

agencyId

agencyId

agencyId Type

city

city

city Type

code

code

code Type

string

country

country

country Type

facilities

Station facilities, including services and features

facilities

facilities Type

Array type: facilities

All items must be of the type: string

id

id

id Type

string

location

location

location Type

name

name

name Type

string

openingHours

Opening hour of the station, object format is left for TSP to decide

openingHours

openingHours Type

object with following properties:

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

platformCode

Platform number

platformCode

platformCode Type

services

What agency and mode of transport will occupy this station

services

services Type

Array type: services

All items must be of the type:

timetables

Timetable for passing by / originating transports

timetables

timetables Type

Array type: timetables

All items must be of the type: object with following properties:

Property Type Required
id string Optional
isRealtime boolean Optional
longName string Optional
mode   Optional
name string Optional
realtime   Optional
schedule   Optional

id

id

id Type

string

isRealtime

A flag indicating whether this transport mode is realtime or not

isRealtime

isRealtime Type

boolean

longName

longName

longName Type

string

mode

mode

mode Type

name

name

name Type

string

realtime

realtime

realtime Type

schedule

schedule

schedule Type

zone

Geofencing zone defined by provider that the station is within

zone

zone Type