Device Duration Return

JordanReighna year ago

Hi guys,

I am currently working with Traccar API as a developer. I am making use of the

       /reports/trips?deviceId=1&from=2021-11-10T20:46:04Z&to=2021-11-17T20:46:04Z

to retrieve my attributes that occured within the last 7 days. I get very strange duration responses, only strange as I do not understand them. The responses I get are the following values;

 3779000 ->Trip 1
 7644000 ->Trip 2
 7170000 -> Trip 3

How do I get a time amount from this?

Anton Tananaeva year ago

Each trip object will have duration or start/end time.

JordanReighna year ago

Yes I understand that. But what is that response, as in what does 3779000 mean?

Anton Tananaeva year ago

Is that a duration value? It should be a value in milliseconds.

JordanReighna year ago

Yes that is the return I receive on the API call. "duration": 313000,