You can retrieve the vehicle’s odometer data from the DriveQuant servers by calling the following method:
fun getOdometer(
vehicleId: String,
listener: OdometerSyncQueryListener,
type: SynchronizationType = DEFAULT
)This method have the following parameters:
, and models are described in the References part.
You can retrieve the vehicle’s odometer data stored in the DriveKit local database by calling the previous method but with the type parameter to CACHE.
You can add a new entry to a vehicle’s odometer by calling the following method:
This method have the following parameters:
, and models are described in the References part.
To update an entry to a vehicle’s odometer, call the following method:
This method have the following parameters:
, and models are described in the References part.
To delete vehicle’s odometer entry, call the following method:
This method have the following parameters:
, and models are described in the References part.
vehicleId
String
The vehicle for which you want to get the odometer’s data
type
SynchronizationType
Can be DEFAULT or CACHE.
- DEFAULT will synchronize the vehicle’s odometer by calling the DriveQuant servers
- CACHE will retrieve the odometer data already synchronized in the local database.
vehicleId
String
The vehicle id for which you want to add an history entry
distance
Double
The distance in km you want to set
vehicleId
String
The vehicle id for which you want to update the odometer’s data
historyId
Int
The history id for which you want to update the distance.
distance
Double
The distance in km you want to update
vehicleId
String
The vehicle id for which you want to delete the odometer’s history entry
historyId
Int
The history id you want to delete
fun addOdometerHistory(
vehicleId: String,
distance: Double,
listener: OdometerAddHistoryQueryListener
)fun updateOdometerHistory(
vehicleId: String,
historyId: Int,
distance: Double,
listener: OdometerUpdateHistoryQueryListener
)fun deleteOdometerHistory(
vehicleId: String,
historyId: Int,
listener: OdometerDeleteHistoryQueryListener
)