Hello everyone,
I am currently using Traccar version 5.10, and I have a question regarding the 'route.xlsx' report. Is it possible to include the name of the Geofence in a column of the 'route.xlsx' report, similar to how it's done in the 'events.xlsx' report?
To provide more context, in the tc_positions
table, we have a list of Geofence IDs, whereas in the tc_events
table, we have a unique integer ID associated with each event. I've attempted to apply the same logic that works for 'events.xlsx,' using the expression ${geofenceNames[position.geofenceIds]}
, but it doesn't seem to work for 'route.xlsx.'
Could it be that the geofenceNames
feature is only applicable to 'events.xlsx'?
Any insights or guidance on this matter would be greatly appreciated.
Thank you!
You either have to hardcode those geofences in the template or update the code to be able to have geofence names.
Ok, I got it. Thanks Anton.
To assist others who may have the same question in the future, here's a basic example of how to use hardcoded geofence name:
${position.geofenceIds[0] == 1 ? "GEOFENCE 1" : position.geofenceIds[0]}
Hello everyone,
I am currently using Traccar version 5.10, and I have a question regarding the 'route.xlsx' report. Is it possible to include the name of the Geofence in a column of the 'route.xlsx' report, similar to how it's done in the 'events.xlsx' report?
To provide more context, in the
tc_positions
table, we have a list of Geofence IDs, whereas in thetc_events
table, we have a unique integer ID associated with each event. I've attempted to apply the same logic that works for 'events.xlsx,' using the expression${geofenceNames[position.geofenceIds]}
, but it doesn't seem to work for 'route.xlsx.'Could it be that the
geofenceNames
feature is only applicable to 'events.xlsx'?Any insights or guidance on this matter would be greatly appreciated.
Thank you!