What would be the best way to calculate Stopped Duration or Moving Duration via API

Victor Butlera year ago

May I ask for an advice on what would be the best way to calculate the following timings via the API.

  • Stopped Duration (Stopped for XX minutes)
  • Moving Duration (Driving for XX)
  • Idle Duration (Idle for XX)

The other way to read the question would be: "Which values do I need to get via API to calculate those timings"?

Thank you!