maas-schemas

leg Schema

http://maasglobal.com/core/leg.json

The base leg object with all fields, to be inherited

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated Yes Develop No Forbidden Permitted core/leg.json

Schema Hierarchy

leg Definitions

Property Type Group
agencyId agencyId http://maasglobal.com/core/leg.json#/definitions/legCore
arrivalDelay arrivalDelay http://maasglobal.com/core/leg.json#/definitions/legCore
departureDelay departureDelay http://maasglobal.com/core/leg.json#/definitions/legCore
distance distance http://maasglobal.com/core/leg.json#/definitions/legCore
endTime time http://maasglobal.com/core/leg.json#/definitions/transferLeg
from from http://maasglobal.com/core/leg.json#/definitions/legCore
legGeometry legGeometry http://maasglobal.com/core/leg.json#/definitions/legCore
mode transferMode http://maasglobal.com/core/leg.json#/definitions/transferLeg
points polyline http://maasglobal.com/core/leg.json#/definitions/legGeometry
productOption productOption http://maasglobal.com/core/leg.json#/definitions/legCore
route route http://maasglobal.com/core/leg.json#/definitions/legCore
routeLongName routeLongName http://maasglobal.com/core/leg.json#/definitions/legCore
routeShortName routeShortName http://maasglobal.com/core/leg.json#/definitions/legCore
startTime time http://maasglobal.com/core/leg.json#/definitions/transferLeg
state state http://maasglobal.com/core/leg.json#/definitions/legCore
stops stops http://maasglobal.com/core/leg.json#/definitions/legCore
to to http://maasglobal.com/core/leg.json#/definitions/legCore
tspProduct tspProduct http://maasglobal.com/core/leg.json#/definitions/legCore

agencyId

agencyId

agencyId Type

arrivalDelay

arrivalDelay

arrivalDelay Type

departureDelay

departureDelay

departureDelay Type

distance

distance

distance Type

endTime

endTime

endTime Type

from

from

from Type

legGeometry

legGeometry

legGeometry Type

mode

mode

mode Type

points

points

points Type

productOption

productOption

productOption Type

route

route

route Type

routeLongName

routeLongName

routeLongName Type

routeShortName

routeShortName

routeShortName Type

startTime

startTime

startTime Type

state

state

state Type

stops

stops

stops Type

to

to

to Type

tspProduct

tspProduct

tspProduct Type

leg Properties

Property Type Required Nullable Defined by
id string Optional No leg (this schema)
signature string Optional No leg (this schema)
* any Additional Yes this schema allows additional properties

id

Universally unique identifier, see https://en.wikipedia.org/wiki/Universally_unique_identifier

id

id Type

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

id Example

"4828507e-683f-41bf-9d87-689808fbf958"

signature

Signature of a signed object

signature

signature Type

string

Any following options needs to be fulfilled.

Option 1

Option 2

Any following options needs to be fulfilled.

Option 1

Option 2

Option 3