Tracks (Legacy) advanced filters: track points filtering based on signals
Note: Tracks is the default experience for users (previously Tracks 2.0 (Beta) in the UI). You can select Tracks (Legacy) from the Tracks panel menu.
With advanced filters, you can get more detailed information of tracks with the Tracks (Legacy) window.
Using this feature, you'll be able to display the interval a switch on the device was on or off. This comes in handy when you want to monitor the activity of a tool on your vehicle, e.g. when the broom of a street cleaner was down for cleaning.
How to use: street cleaning example
Street cleaning vehicles send a boolean signal to GpsGate to indicate whether the cleaning broom is down (active) or not. By using advanced filters, we can see when the vehicle was in cleaning mode.
First, we have to make sure that GpsGate is receiving the signal in question. For this purpose, we create a GpsGate variable and map it with the right input from the device. Steps to do this:
- Go to Site Admin → Devices → Variables
- Define a variable named BroomOn of System.Boolean type and save it.
- Go to Vehicle Tracker. Open the device mapper panel and pair the right input with BroomOn signal. You can read more about the device mapper here.
You can access the advanced filters panel from the dropdown menu on the top right of the track points list in your vehicle tracker application:
On the panel, apart from Time, Speed, and Altitude filters, you will find a dropdown list where you can pick any of the mapped boolean signals for filtering.
Pick BroomOn signal from the list and click Apply Filter. The track point list will be updated and will only include the track points where the broom was down (i.e. BroomOn signal was True):
Now that you have a list of track points where the street cleaner was in cleaning mode, you can draw the track and the result on the map.
Combining more signals for filtering
It’s also possible to combine two or more signals for filtering. To do this, you will need to use the device mapper scripting feature in GpsGate.
If we go back to our street cleaner example, let’s assume that the device doesn’t have an explicit BroomOn signal sent to GpsGate Server. Instead, the condition is that vehicle speed is more than 1 kph, and CustomBoolean1 signal is true. In this case, we can map the BroomOn signal to a device mapper script:
Read more about device mapper scripting here.