Provision for calculating road speed while saving the position data

Rishi5 days ago

Hi,

I am currently working on a project where I need to calculate speed violations based on the road speed limit. I am using Traccar’s API to get trips and idle data, and I also use the OpenStreetMap (OSM) geocoder to convert coordinates to addresses.

However, I am wondering if there is any built-in provision or method in Traccar to obtain the road speed limit directly from the coordinates (similar to how we use geocoders to get addresses). Alternatively, is there any recommended way to integrate this functionality with Traccar using external data sources or APIs?

Thanks in advance.

Anton Tananaev5 days ago

We support Overpass as the speed limit provider.

Rishi5 hours ago

Hi Anton,

Thanks for your response. I see that Traccar supports Overpass as the speed limit provider. However, I would like to clarify whether there is a way to differentiate overspeed events based on the speed limit set on the device versus the speed limit provided by Overpass.

For example, if a device has a custom speed threshold configured, will Traccar indicate whether an overspeed event was triggered due to this custom threshold or the road speed limit fetched from Overpass? Or is there a way to distinguish between the two in the event data?

Looking forward to your insights. Thanks!

Anton Tananaevan hour ago

I think we include the speed limit value in the event, so that's one way to distinguish.