Example: Display odometer

Displays a vehicle's odometer readings over time

Display odometer

  to  

Help

Overview
This examples demonstrates retrieving trips and plotting the vehicle's odometer reading over time.

Work flow
Your vehicles are retrieved using an initial API request for all Device entities. Then when one is selected, the current odometer value is retrieved if available. Then, the vehicle's trips are used to count backward the distance travelled. Each trip distance is plotted on the chart.

Skill level
Intermediate