Display Odometer Example
Skill level:

This example demonstrates a tool that can be built with an advanced-level knowledge of the MyGeotab system. It is suitable for those who have a well-versed understanding of the entire Geotab ecosystem and are confident with the MyGeotab SDK and leveraging the MyGeotab APIs within their projects.

This examples demonstrates retrieving trips and plotting the vehicle's odometer reading over time. 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.
In this example
API Methods:Get
API Entities:Device Status Data

Select a vehicle from the dropdown below and choose
the dates you want the readings for:

  to