Distance traveled by Vehicle in specific given time

Lasantha Prasad8 years ago

Hi Anton,
I'm new to your Traccar Platform and searched all over the forum for solution of following requirement.

I want to get distance traveled by vehicle on specific time duration without having iterative calculations. ( You are saving totalDistance in Odometer)

  1. Is it possible to get Vehicle Odometer value of specific time (let's say 10/19/2017 14:40 ) from API request?

  2. Is possible to get Distance Traveled for time duration (Let's say 09/19/2017 14:00 to 10/19/2017 14:00) from API Request?

  3. If both above are not possible, what do you recommend ( want to get distance info from already calculated and stored in database, dont like to calculate it again ) ?

Best Regards
Prasad

Anton Tananaev8 years ago

You can use reports to get historical data. For the first one use route report, but you would need to specify some period of time. For the second one summary report.

Lasantha Prasad8 years ago

Thanks for prompt reply.
Actually I want to write above data to mysql external database without using Traccar GUI .
Would you be able to assist me to get above data via Traccar API Request ?

Anton Tananaev8 years ago

We provide paid support if you need more help. Send an email to support address if you are interested.