There is no approximate attribute.
But I think it is being set for the position object in GeolocationHandler here alongside with accuracy. And I also see, it is being used in FilterHandler.
Completely forgot about that. That attribute is only set for geolocation results.
Noted.
But the accuracy field is set also there at the same time. I see some of the positions that they have accuracy>0 but not have approximate. Is the accuracy is also being set without geolocation results? I need to make a decision where the position was reported by GPS or LBS, for me approximate was making sense because it was used in the filter handler also for the same purpose.
The attribute is set only if LBS was done on the server. For example if Traccar Client reports a location, it won't be set, even if it was an LBS location. That's because it's on the phone side.
Okay, got it, it means the trackers are also doing LBS on tracker side.
So, I think to differentiate correctly GPS from LBS, we can use the accuracy field, as it is always 0 for GPS.
I think so, but I can't guarantee that it's always for all devices. But it's 99.9% the case.
Okay. Got it. Thank you!
@Anton,
Is approximate set if the server sends a request to a geolocation service (e.g. Google) or is it set if it gets a valid result?
Geolocation result.
Hi to all members,
Is it possible to have
accuracygreater than zero, but no value forapproximatefield in attributes section of a position object?I noted here that both of them are relevant to each other, but I have some position records in my traccar where the
accuracyis >0 butapproximateattribute is absent at all.