How did you add it?
I am adding in the code when position not null so I am adding position.set("myattrubute","myvalue")
I also add this attributes in config file
1- I have added this on distance handler under the if condition
if (last != null) {
position.set("myattrubute","myvalue");
//Other original codes
}
2- I don't now how traccar is storing data but with each position it's going in the database and showing in the position api.
But after restarting it's not showing
If you're doing it in the distance handler, it should still be there. Have you checked the database?
I have added the timestamp in the position attribute, when I am restarting the server so my timestamp is clearing.
How can solve this