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 |
---|---|---|
|
|
location array |
|
|
‘estimated time of arrival’ in seconds |
|
|
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 |
---|---|---|
|
|
JSON object |