Overpass and maximum speed attribute (at the same time)

brianara year ago

Hello Traccar community! Congratulations on all the achievements with the system.

I'm configuring the Overpass API within the config file. I would like to know what happens when the device has both the Overpass and a custom attribute for maximum speed.

  1. Does the system use both options? In other words, does it consider whichever condition is met first?

  2. Does the "event.overspeed.minimalDuration" work the same way for both overspeed and the device attribute?

  3. I believe that overspeed events are stored in "tc_events," is that correct?

  4. Are they stored in any other place? For example, in specific attributes of "tc_positions" or in "tc_devices" (overspeedstate and overspeedtime)?

  5. In "tc_devices," what information is stored in "overspeedstate" and "overspeedtime"?

Thank you in advance for your assistance.

Anton Tananaeva year ago
  1. It uses both. Overpass would be higher priority than the device speed limit.
  2. Yes.
  3. Yes.
  4. No. There are some relevant properties on device, but that's not events.
  5. Check OverspeedProcessor if you want to know how it all works.
brianara year ago

Thank you very much Anton!

carlocka year ago

greetings. I am also testing this function. but when trying to deactivate it, delete the url in traccar.xml or setting speedLimit.enable to false. I keep getting the notifications. how do i disable it? What should I delete from the database?

Anton Tananaeva year ago

If you're still receiving it, probably you still have the speed limit configured somewhere.

carlocka year ago

Yeah. the limit is configured in some vehicles. but still depending on the speed of the street. not the one determined in attributes. that is to say. it continues with the overspeed function of the api even though it is not already configured. Is there a way to colver at the beginning so to speak? to completely delete the function so that it only takes the speed that I put in attributes as it was before configuring the api? thank you

Anton Tananaeva year ago

Well, if you disable it in the config, it won't use the overspeed anymore.

carlocka year ago

regards, antom where could my mistake be?

use a variant of this setup,

<entry key='speedLimit.enable'>True</entry>
<entry key='speedLimit.type'>overpass</entry>
<entry key='speedLimit.url'>http://**************</entry>

The notifications arrived perfectly, based on the limits of the streets, 40-30-20 km/h respectively, but when trying to deactivate it by removing the same 3 lines, the notifications with those limits keep coming

No vehicle has them created in its attributes, there is only the notification of all the devices,

I even put the first of that conf but in false only that line and even so they keep coming, delete everything and just copy the database and they keep coming on a new server, based on street limits- 20-30-40 etc kmh ..

I also tried changing the url of the api to an invalid one

they just shrink a bit, like it keep the locations that had them but don't take new ones

Is there somewhere in the database that they are saved?

Anton Tananaeva year ago

No, the configuration or the limits from the provider are not saved anywhere in the database. You must be missing something.

RB_NZa year ago

Hi Anton. I have got Overpass speed lookups working. I wonder if you would consider adding another variable into the code to allow for a threshold, say for example if we are ok with users 5% over the posted speed limit.
Something like <entry key='speedLimit.threshold'>1.05</entry>
Or is there already someway a way to achieve this?

Anton Tananaeva year ago

Good idea. Feel free to create a ticket.