Additional Context

Use additionalContext to associate a measurement with your business workflow. The data is stored with the measurement on the backend and returned in measurementInfo.additionalContext after the scan.

Fields

Field Type Description

correlationId

String?

correlationId must be a valid UUID string from your system to correlate the measurement with your workflow.

tirePosition

TirePosition?

Physical position of the tire on the vehicle.

TirePosition

TirePosition describes where the tire is mounted, relative to the direction of travel:

Field Type Description

axle

Int

Axle number, starting at 1 for the front axle. Must be >= 1.

side

TireSide

Which side of the vehicle: Left, Right, or Center.

positionOnAxle

Int

Position on the axle, where 1 is the outermost tire. Higher values represent inner tires (dual-wheel setups). Must be >= 1.

For example, the front-left tire of a passenger car is TirePosition(axle = 1, side = TireSide.Left, positionOnAxle = 1). The rear-right tire is TirePosition(axle = 2, side = TireSide.Right, positionOnAxle = 1).

additionalContext example

  • Android

  • iOS

import io.anyline.tiretread.sdk.types.AdditionalContext
import io.anyline.tiretread.sdk.types.TirePosition
import io.anyline.tiretread.sdk.types.TireSide

val config = TireTreadConfig().apply {
    additionalContext = AdditionalContext().apply {
        correlationId = "550e8400-e29b-41d4-a716-446655440000"
        tirePosition = TirePosition(
            axle = 1,
            side = TireSide.Left,
            positionOnAxle = 1
        )
    }
}
let config = TireTreadConfig()

let context = AdditionalContext()
context.correlationId = "550e8400-e29b-41d4-a716-446655440000"
context.tirePosition = TirePosition(axle: 1, side: .left, positionOnAxle: 1)
config.additionalContext = context