Types

Types

Task

Field

Description

zone geozone

The task's geozone

Example

{
"zone": {
"name": "FleetEng HQ",
"address": "35 Stirling Hwy",
"coords": {
"lat": -31.977559,
"lon": 115.816393
},
"radius": 100
}
}

Metadata

Field

Description

key string

The metadata fields label

value string

The metadata fields value

Example

{
"key": "My Metadata Key",
"value": "My Metadata Value"
}

Driver

Field

Description

contact contact

The driver's contact details

password string

The new driver's password

Example

{
"contact": {
"name": "Andrew Walker",
"email": "andrew@fleeteng.com.au",
"phone": "+61123456789"
},
"password": "DRIVER_PASSWORD"
}

Contact

Field

Description

name string

The contact's name

email string

The contact's email address

phone string

The contact's phone number in an international format. e.g. +61123456789

Example

{
"name": "Andrew Walker",
"email": "andrew@fleeteng.com.au",
"phone": "+61234567890"
}

Geozone

Field

Description

name string

The geozone's name

address string

The geozone's address

coords location

The location of the geozone

radius double

The radius of the geozone

Example

{
"name": "Example Place",
"address": "35 Stirling Hwy",
"coords": {
"lat": -31.977559,
"lon": 115.816393
},
"radius": 100
}

Location

Field

Description

lat double

Latitude

lon double

Longitude

Example

{
"lat": -31.977559,
"lon": 115.816393
}