Skip to content

Combined Report

Fetch combined report rows (route and events) for one or more devices or groups.

Request

php
use Carbon\CarbonImmutable;
use ThingsTelemetry\Traccar\Facades\Report;

$from = CarbonImmutable::parse('2025-11-22T18:30:00Z');
$to = CarbonImmutable::parse('2025-11-23T18:30:00Z');

$report = Report::combined(deviceIds: [6], groupIds: [], from: $from, to: $to);

Result

Returns an Illuminate\Support\Collection<int, ThingsTelemetry\Traccar\Dto\CombinedReportData>.

The CombinedReportData object contains:

PropertyTypeDescription
deviceIdintDevice identifier
routeCollection<PositionData>List of positions
eventsCollection<EventData>List of events

Released under the MIT License.