traccar / traccar-client-android

Traccar Client for Android
https://www.traccar.org/client
Apache License 2.0
665 stars 736 forks source link

send last known location if lost fix #380

Open FreshAF123 opened 6 years ago

FreshAF123 commented 6 years ago

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

tananaev commented 6 years ago

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

oliv3 commented 6 years ago

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 ?

FreshAF123 commented 6 years ago

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

oliv3 commented 6 years ago

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.

Tyler-2 commented 6 years ago

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.

AUSITStuff commented 5 years ago

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.