Members
# inner constant scope
- To Do:
-
- Those functions should be consumed/proxied-by by history-service only
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
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 |
*
|
# 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
# 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
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
Array