Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Case when routes counting gets back to 1. #142

Open
orenyodfat opened this issue Oct 25, 2014 · 3 comments
Open

Case when routes counting gets back to 1. #142

orenyodfat opened this issue Oct 25, 2014 · 3 comments

Comments

@orenyodfat
Copy link
Owner

I looked on the android code ,the route is increment each time the app starts listen to the GPS.
For the case someone uninstall the app and then re install it the routes will start again from 1...Ofer, is that will make troubles?

@orenyodfat
Copy link
Owner Author

After discussion with Ofer..this cause a bug.
The solution for that ;
Client Side :
The route ID should be build from the timestamp. So instead of increment the route (++Counter) just use the current time stamp.
Server Side -
If the time elapse between to payloads is greater than 3 minutes..ignore the distance from the privious point.

@gilse
Copy link
Collaborator

gilse commented Oct 26, 2014

client fix

@oferse
Copy link
Collaborator

oferse commented Oct 26, 2014

server fix
will be deployed with server version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants