Track My Ride GPS data processed into easy-to-read aggregated reports

Access the full spectrum of the Track My Rides extensive report system. All reports can be executed with data returned in JSON format by default. They can also be exported as CSV, XLS or PDF.

Sending a request

Each report has its own unique endpoint address that must be queried as they operate separately from the
general API calls.

To send a request, use https://app.trackmyride.com.au/v2/php/ followed by the defined report-endpoint (as seen below) followed by the api and user keys and any other query parameters.

Example Report request

An example request for the Journey report (report1.php) for the 19-20-2021 for all vehicles (*)

https://app.trackmyride.com.au/v2/php/report1.php?api_key=GF83FDSa72hds82jfFD82js123j3284mw8223&user_key=gtr873ns2eDSf111&reportDateFrom=19-10-2021&reportDateTo=19-10-2021&vehicle=*

A list of the available query parameters is shown below.

Report General Parameters

NameDescriptionRequiredExample
user_keyUser unique keyYesgtr873ns2eDSf111
api_keyAPI KeyYesGF83FDSa72hds82jfFD82js123j3284mw8223
reportDateFromThe date to start the report from (00:00 am)

DD-MM-YYYY
Yes*

Except for the Zone Stocktake report.

*unless using reportDatePeriod
01-07-2023
reportDateToThe date to end the report time interval (23:59)

DD-MM-YYYY
Yes*

Except for the Zone Stocktake report.

*unless using reportDatePeriod
01-07-2023
reportDatePeriodOptionally, instead of requesting a report for a specific date range, you can instead request the report for a relative time period (this week, last month etc), based on your timezone of choice.

A timezone
No,

Will override reportDateFrom and reportDateTo if specified.
this week - Monday this week midnight, to Sunday this week midnight.
this month - First day of this month midnight, to last day of this month midnight.
rolling 3 months - Today midnight - 3 month, to today midnight.
rolling 2 months - Today midnight - 2 months, to today midnight.
rolling month - Today midnight - 1 month, to today midnight.
rolling week - Today midnight - 1 week, to today.
last fortnight - Monday this week midnight - 2 weeks, to Sunday this week - 1 week.
last week - Monday last week midnight, to Sunday last week.
last month - First day of last month midnight to the last day of last month.
today - Today midnight to 23:59
yesterday - Yesterday midnight to 23:59
reportDatePeriodTimezoneWhen using reportDatePeriod as a relative period from now, the report needs to know what timezone you're requesting the period in.

If this variable is not provided, it will default to the current time in UTC
NoAustralia/Melbourne

For a full list of supported timezones, see https://www.php.net/manual/en/timezones.php
vehicleThe unique id of the vehicle to run the report for.

* can be used to run for all vehicles on all reports, except for the Tax report
Yes - if the driver variable is not specified*
driverTo filter for the driver of a vehicle, if the report supports it, you can pass the driver variable instead of the vehicle variable.Yes - if the vehicle variable is not specifieda33e15ffb353716f
export_typeThe data format to return the report.
Options are: csv, pdf, xls

If left blank, then the results will be returned as JSON
Nocsv
options[ ... ]Report-specific options adjust how an individual report is run. The available options differ for each report.

For more information, check the table below
Nooptions[reportStops]=1

If passed to the journey report (report1.php) the results returned would include stop records.

Available Reports Overview

A brief overview of the available reports and their endpoints. For more information on the reports, log in to the Track My Ride Web Portal.

All options are contained within the parameter options. For example, to add stop times to the Journey report, add options[reportStops]=1.

NameEndpointDescriptionOptionsOptions ExampleExample explanation
Journeyreport_1.phpA detailed list of the journeys your vehicle/s has made from point A to point B.reportStops: (Boolean) Include stop rows and stopped times to reportoptions[reportStops]=1Include stop records between each journey.
filter_hours: (Array) an array of hours in a day to include in the report.

Sunday as 0, Monday as 1 ...
options[filter_hours][0][day]=0&options[filter_hours][0][hour]=10Only include journeys that started on Sunday between 10:00 am to 10:59 am
reportReturnEditedOnly: (Boolean) Return only the results that have had their classification business/private manually changed.options[reportReturnEditedOnly]=1Only journeys that have been manually classified as business/private are returned.
reportRecordsEditedSincePeriod: (string) Return journeys that were manually classified within a given relative time period.options['reportRecordsEditedSincePeriod']=this weekOnly journeys that have been manually classified as business/private within the period of this week (Monday to Sunday) are returned.

This field is useful when running the report for a relative time period using the reportDatePeriod parameter and supports the same values as reportDatePeriod does.
Journey Summaryreport_2.phpAn aggregation of the journey data.filter_hours: (Array) an array of hours in a day to include in the report.

Sunday as 0, Monday as 1 ...
options[filter_hours][0][day]=0&options[filter_hours][0][hour]=10Only include journeys that started on Sunday between 10:00 am to 10:59 am
Engine On/Offreport_engine.phpThe times that the vehicle's engine has turned on and off, along with the locations and duration of the event.N/A--
Time in Zonesreport_time_in_zones.phpAn outline of the time the vehicle/s has spent within the accounts zonesN/A--
Tax Logbookreport_tax.phpA list of all journeys your vehicle/s has made that are able to be used as a tax logbook.

Journeys are automatically flagged using the TMR zone system.

Journeys can also be individually classified as business or set to always be business in the TMR portal.
filter_hours: (Array) an array of hours in a day to include in the report.

Sunday as 0, Monday as 1 ...
options[filter_hours][0][day]=0&options[filter_hours][0][hour]=10Only include journeys that started on Sunday between 10:00 am to 10:59 am
Raw GPS Datareport_raw.phpThe original raw GPS data points and information your tracker transmitted to the TMR servers.extended: (Boolean) Include additional metadata values for each resultoptions[extended]=1Include the following additional values for each row:

Uploaded at, upload delta, bearing, accuracy, power voltage, ignition, additional IO elements
Zone Stocktakereport_zones_stocktake.phpPerform a stocktake of your vehicles based on the zones they are currently located in.N/A--
Refuellingreport_refuel.phpIf using the TMR refuelling system, then use this report to calculate the fuel economy of your vehicle/s.N/A--
Maintenancereport_maintenance.phpChecks your vehicle odometers and return vehicles approaching or exceeding their periodic maintenance window.interval: (integer) maintenance interval in kmoptions[interval]=15000Show when your vehicles are approaching intervals of 15000kms. Ie 30000 km, 45000 km, ...
Heatmapreport_heatmap.phpSee which areas your vehicles most often frequent.precision: (Float) precision in kmoptions[precision]=0.001A precision of 0.1 km will be used
Inputsreport_inputs.phpShows the duration that external devices connected to your tracker have been active (greater than 9 Volts)N/A--
Utilisationreport_utilisation.phpShows the duration of events generated by your vehicles and classifies them based on whether or not they meet your benchmark duration criteria.See below for a description--
Driver Historyreport_drivers.phpSee which of your drivers have been operating your vehicles and for how long.N/A--
Alert Historyreport_alerts.phpLoad all the alerts that have been raised for your account and the extended data associated with the alert.N/A--
Tracker Self Checkreport_vehicle_health.phpPerform a diagnostic self-check on your Track My Ride devices.N/A--

Returned data

Reports endpoints will return a JSON object with a URL in which the generated file can be downloaded. If no export_type was specified, then the data will be returned as an array of JSON objects.

Journey Report special notes on options.

If you're using the options reportReturnEditedOnly or reportRecordsEditedSincePeriod, we have prepared some example images that show the results that would be returned for different relative time periods.

Utilisation Report

The Utilisation report inspects the duration of events generated by your vehicles and classifies them based on whether or not they meet your benchmark duration criteria.

This can be very useful for monitoring events such as a tow truck's tilt tray operating time (via an input) or engine on/off times for machinery.

If you need to ensure your drivers meet a certain benchmark simply set your report's options and you can see how frequently your drivers are hitting the mark!

Options

NameDescriptionExample
groupHow to group data.

0: vehicles
1: drivers
1
eventThe event that is to be monitored.

0: Engine On/Off
1: Ignition input
2: Input 1
2: Input 2
0
benchmarkBenchmark time in seconds300
goalMonitor if the driver/vehicle exceeds or is less than the inputted benchmark time

0: Exceeds benchmark time
1: Is below benchmark time
1
targetThe target number of times the driver/vehicle needs to meet the benchmark time1
day_sunInclude Sunday in the report

true, false
true
day_monInclude Monday in the report

true, false
true
day_tueInclude Tuesday in the report

true, false
true
day_wedInclude Wednesday in the report

true, false
true
day_thuInclude Thursday in the report

true, false
true
day_friInclude Friday in the report

true, false
true
day_satInclude Saturday in the report

true, false
true