Class: TripLocationHistory

domain/TripLocationHistory.TripLocationHistory

Constructors

constructor

new TripLocationHistory(locationHistory, etaSeconds, distanceToDestinationMeters)

An array of locations represents the history of the trip

Parameters

Name

Type

Description

locationHistory

Location[]

location array

etaSeconds

number

‘estimated time of arrival’ in seconds

distanceToDestinationMeters

number

Remaining driving distance until destination in meters (PREVIEW)

Properties

distanceToDestinationMeters

distanceToDestinationMeters: number

Remaining driving distance until destination in meters (PREVIEW)


etaSeconds

etaSeconds: number

‘estimated time of arrival’ in seconds


locationHistory

locationHistory: Location[]

location array

Methods

fromJSON

Static fromJSON(tripLocationHistory): TripLocationHistory

Create from JSON

Parameters

Name

Type

Description

tripLocationHistory

any

JSON object

Returns

TripLocationHistory