Module

history-api

Members

# inner constant scope

To Do:
  • Those functions should be consumed/proxied-by by history-service only

View Source api/historyApi.js, line 27

Methods

# static getChartTripHistoryFromVehicleId(vehicleId, date) → {Array}

Retrieves one vehicle trip history (normalized for a vertical chart)

Parameters:
Name Type Description
vehicleId *
date *
To Do:
  • Refactor: Instead of historyApi, Chart component (TripHistoryDetails) should be responsable of transofrming API response into chart normalized dataset

View Source api/historyApi.js, line 331

Normalized chart dataset

Array

# async inner getPositionsFromVehicle(vehicleId, date)

Retrieves vehicle positions from a date (00:00:00 to 23:59:59)

Parameters:
Name Type Description
vehicleId *
date *

View Source api/historyApi.js, line 154

# async inner getTripHistoryFromVehicleId(vehicleId, date)

Feth from APIV2 Support fixtures

Parameters:
Name Type Description
vehicleId *
date *
To Do:
  • Remove fixtures feature without braking unit test

View Source api/historyApi.js, line 295

# async inner getVehicleHistoryInfosFromAPIV2() → {Object}

Used by Diagnostics module to display analysis overview (After search validation)

Retrieves history infos (such as averange speed, distance) and positions from a vehicle, date

View Source api/historyApi.js, line 188

Vehicle infos or an empty object

Object

# async inner getVehiclePositionsV2(vehicleId, date) → {Array}

Used by Location module (Trip history details - table) to load positions and sensors configuration

Parameters:
Name Type Description
vehicleId *
date *
options.startDate Object
To Do:
  • Remove fixtures feature without braking unit test

View Source api/historyApi.js, line 106

Array