traccar-client-android icon indicating copy to clipboard operation
traccar-client-android copied to clipboard

send last known location if lost fix

Open FreshAF123 opened this issue 5 years ago • 6 comments

isit possible to send the last known location if fix has been lost? therefore at every frequency we are able to get a location update

FreshAF123 avatar Nov 02 '18 01:11 FreshAF123

Theoretically possible, but I don't see any good reason.

tananaev avatar Nov 02 '18 01:11 tananaev

Hi, @FreshAF123. From your questions I understand you have concerns with location updates frequency. What exactly do you want to achieve ? What are your goals/wishes ?

oliv3 avatar Nov 02 '18 12:11 oliv3

hi @oliv3 , i want to achieve a constant location update with the frequency i have set but im struggling with the onLocationCHanged method as if it misses a fix, onLocationChanged would not be called at all, i want to provide a constant update as i have included other parameters in the location update beside battery percentage, so lets say device misses fix , last location is sent instead

FreshAF123 avatar Nov 05 '18 00:11 FreshAF123

This doesn't answer my question; why would you want to send an outdated location ? Device might actually be far from it's last known location.

oliv3 avatar Nov 05 '18 00:11 oliv3

Agreed with oliv3: The only way I would want old locations to be sent is if they were timestamped with the old timestamp. This would essentially be a "ping" to the server, which might be useful in some way to establish that the client is online but has an unknown position... But I'm not clear on the specific use case.

Tyler-2 avatar Nov 13 '18 15:11 Tyler-2

Our problem has been if we want to use the SOS feature, when using High Accuracy it works fine if you are outdoors however once it loses GPS lock indoors the app essentially goes offline. At least with a last known location we would know where to start looking.

Essentially it should be in the Unknown category in that it is reporting to server but cannot guarantee accuracy but at least that way the SOS widget would still function.

AUSITStuff avatar Jun 06 '19 04:06 AUSITStuff