Migration Guide 2.1
Migration SDK from old versions
This section will provide a detailed description of the API changes during the upgrade. We strongly recommend reading this documentation when upgrading the SDK version to understand the API differences and update your API calls accordingly based on the version disparities.
Migration to version 2.1.0
Support New Trip Rating
Now a transition in object representation occurred with the replacement of the TripRating
object by the Rating
object. The TripRating
object, previously employed to manage ratings associated with trips, has been supplanted by the Rating
object, which now assumes the responsibility for handling and representing trip-related ratings.
In the AggregatedSafetyScore
object:
- Add new field
tripsRating
to describes the trip rating under current safety algorithm.
Support Cloud Safety Score
Now you can retrieve server-side safety score by using ConnectionMode CLOUD.
Note
On CLOUD
mode, ensure connection to an available network.
1 2 3 |
|
New Field For Event Details
Road information added for safety event details, Now the Loction
object inside the Safty Event
has a new label
field, which you can now retrieve.
New DriveMotionSettings Update
Now the DriveMotionSettings
configuration has undergone a modification. Specifically, the isUseExternalDataSource
parameter has been split, introducing a more modular (ExternalGPS、UseRoadInfoType、UseExternalPhoneUsage
) approach to configuration.