Trip Interface Description 1.2.2 Help

Odometer

A question of type odometer Allows the user to enter a number that represents the mileage of a vehicle.

{ "id": 0, "key": "odometer", "label": "Odometer", "description": "Odometer variant of the number question", "required": true, "type": "odometer", "answers": [ { "id": 0, "options": { "diffWarning": 400, "requireHigherMileage": true, "saveToPref": true } } ] }

Answer Options

This chapter describes the option possibilities for an answer.

Name

Type

Description

Required

Default

minValue

double

The minimum value the answer should be

false

0.0

maxValue

double

The maximum value the answer can be

false

9999999.0

minLength

int

The minimum length the answer should be

false

0

maxLength

int

The maximum length the answer can be

false

0 (unlimited)

decimals

int

The number of allowed decimals

false

0

autoFill

bool

Whether to auto-fill the input with the previous mileage

false

true

saveToPref

bool

Whether to save the entered mileage to preferences

false

false

diffWarning

int

The mileage difference threshold for showing a warning

false

1000

requireHigherMileage

bool

Whether the entered mileage must be higher than the previous value

false

false

Examples

Example with a configured diffWarning of 400, requireMileage and a saveToPref

Odometer variant of the number question
{ "id": 0, "key": "odometer", "label": "Odometer", "description": "Odometer variant of the number question", "required": true, "type": "odometer", "answers": [ { "id": 0, "options": { "diffWarning": 400, "requireHigherMileage": true, "saveToPref": true } } ] }
Last modified: 04 June 2025