maas-schemas

MODE_TAXI Schema

http://maasglobal.com/core/modes/MODE_TAXI.json

Schema for MODE_TAXI meta field

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated No Develop No Forbidden Forbidden core/modes/MODE_TAXI.json

Schema Hierarchy

MODE_TAXI Properties

Property Type Required Nullable Defined by
dispatchOrderId string Optional No MODE_TAXI (this schema)
driver object Optional No MODE_TAXI (this schema)
eta integer Optional No MODE_TAXI (this schema)
messageToDriver string Optional No MODE_TAXI (this schema)
noShowReportedByDriver boolean Optional No MODE_TAXI (this schema)
pickupIdentificationCode string Optional No MODE_TAXI (this schema)
taxiCenter object Optional No MODE_TAXI (this schema)
vehicleDescription string Optional No MODE_TAXI (this schema)
vehicleId string Optional No MODE_TAXI (this schema)
vehicleLocation object Optional No MODE_TAXI (this schema)
vehicleType string Optional No MODE_TAXI (this schema)

dispatchOrderId

An internal use only number identifying the dispatch id for inspection

dispatchOrderId

dispatchOrderId Type

string

driver

Driver information

driver

driver Type

object with following properties:

Property Type Required
image string Optional
name string Optional
phone string Optional
rating number Optional

image

Uniform resource locator, see https://en.wikipedia.org/wiki/Uniform_Resource_Locator and https://mathiasbynens.be/demo/url-regex

image

image Type

string

All instances must conform to this regular expression (test examples here):

^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$

name

Driver name, e.g. ‘Sergey’ or ‘Jane S.’

name

name Type

string

phone

phone

phone Type

string

rating

rating

rating Type

number

eta

POSIX time in milliseconds, https://en.wikipedia.org/wiki/Unix_time

eta

eta Type

integer

messageToDriver

Message to the driver with, for example, pick up instructions or any other information

messageToDriver

messageToDriver Type

string

noShowReportedByDriver

noShowReportedByDriver

noShowReportedByDriver Type

boolean

pickupIdentificationCode

Any code that the user can show/tell to the driver to confirm legitimacy of the ride (name, letters, numbers - depends on the service provider)

pickupIdentificationCode

pickupIdentificationCode Type

string

taxiCenter

taxiCenter

taxiCenter Type

object with following properties:

Property Type Required
image string Optional
name string Optional
phone string Optional

image

Uniform resource locator, see https://en.wikipedia.org/wiki/Uniform_Resource_Locator and https://mathiasbynens.be/demo/url-regex

image

image Type

string

All instances must conform to this regular expression (test examples here):

^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$

name

name

name Type

string

phone

ITU-T E.164 phone number, see https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9781449327453/ch04s03.html

phone

phone Type

string

All instances must conform to this regular expression

^\+(?:\d){6,14}\d$
phone Example
+358401234567

vehicleDescription

An arbitrary description of the vehicle, e.g. ‘Black Jaguar’

vehicleDescription

vehicleDescription Type

string

vehicleId

The taxi id (in the taxi number plate on top of the vehicle)

vehicleId

vehicleId Type

string

vehicleLocation

Geographic latitude-longitude object in WGS-84 system, see https://en.wikipedia.org/wiki/World_Geodetic_System

vehicleLocation

vehicleLocation Type

object with following properties:

Property Type Required
lat   Required
lon   Required

lat

lat

lat Type

lon

lon

lon Type

vehicleType

vehicleType

vehicleType Type

string