How does traccar generate trips

I have already read the documentation on trips and stops and I can fairly understand how it works. But how does this work under the hood? Does traccar generate trips upon request (REST api call) or does it have a table containing list of trips with reference to positions table? May I see the code for generating trips?

Anton Tananaev8 years ago

Trips are calculated on request. Code is on Github; search for "trips".

abyss8 years ago

Traccar generates trips on the fly on API call. Source Code is available on GitHub. The function is here https://github.com/tananaev/traccar/blob/master/src/org/traccar/reports/ReportUtils.java#L254

thanks