I noticed that the location reported by Traccar server can be noisy - even if device is not moving - it still reports changes. Which causes unnecessary Maps API request (can cause unnecessary charges, especially from Google).
In ver 4.0.0.33 I added a lot of functionality to help avoid this. The LocChange HS device shows when plugin detects the change in position and sends Map API requests:
a. for address reverse geocoding (if not setup on server side)
b. for map image (if "Show Map" is selected)
c. for StreetView image (if "Street View" is selected)
So, ver. 4.0.0.33:
1. Added "Positions Only" log level, so the plugin only logs information necessary for troubleshooting location change and Maps API requests.
2. Added moving average filter separately for latitude and longitude. Bigger window size will reduce the noise and false position change detection, but may reduce the address/map update frequency.
3. Same (but reverse) for "Location change sensitivity" - higher number will increase the address/map update frequency.
4. Diagnostics statistics shows the average Map API request interval (mm::ss) and Lat/Lon detected change interval.
5. Maps API calls counters - Daily (auto reset) and Total (manual reset). Helps to monitor and trigger alarm if calling API too often
The above settings may differ for different device types, i.e. mobile phone location reporting is more noisy, but update speed is less important (so the filter size can be increased, but sensitivity reduced). For car GPS tracker the location reporting is more precise, but speed is more important, so filtering can be reduced.
Note: setting "Location filter size" to 1 disables moving average filter.
In ver 4.0.0.33 I added a lot of functionality to help avoid this. The LocChange HS device shows when plugin detects the change in position and sends Map API requests:
a. for address reverse geocoding (if not setup on server side)
b. for map image (if "Show Map" is selected)
c. for StreetView image (if "Street View" is selected)
So, ver. 4.0.0.33:
1. Added "Positions Only" log level, so the plugin only logs information necessary for troubleshooting location change and Maps API requests.
2. Added moving average filter separately for latitude and longitude. Bigger window size will reduce the noise and false position change detection, but may reduce the address/map update frequency.
3. Same (but reverse) for "Location change sensitivity" - higher number will increase the address/map update frequency.
4. Diagnostics statistics shows the average Map API request interval (mm::ss) and Lat/Lon detected change interval.
5. Maps API calls counters - Daily (auto reset) and Total (manual reset). Helps to monitor and trigger alarm if calling API too often
The above settings may differ for different device types, i.e. mobile phone location reporting is more noisy, but update speed is less important (so the filter size can be increased, but sensitivity reduced). For car GPS tracker the location reporting is more precise, but speed is more important, so filtering can be reduced.
Note: setting "Location filter size" to 1 disables moving average filter.
On "MyDevices" screen (auto refreshed) you you can see when Position (Location) change is triggered and also the statistics of the change detection and Maps API requests. |
Comment