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

Backend: Add Trip Progress Markers #45

Closed
RyanDotsikas opened this issue Nov 9, 2018 · 1 comment
Closed

Backend: Add Trip Progress Markers #45

RyanDotsikas opened this issue Nov 9, 2018 · 1 comment

Comments

@RyanDotsikas
Copy link
Contributor

In order to check that a trip is currently in progress, we need to add to the backend trip table a means of marking which destinations the driver has hit. This can be easily implemented by an array that is the same size of the destinations array, and will consist of 0's and 1's. A 0 indicates that the driver has yet to hit that destination and a 1 means that they have reached it. Therefore trips that have a 0 in the array are still in progress.

@RyanDotsikas RyanDotsikas transferred this issue from ECSE321-Fall2018/t07-web Nov 14, 2018
@RyanDotsikas
Copy link
Contributor Author

It was instead decided to have a singular marker denoting if the trip is still in progress or not. This is a column called 'isCompleted' in the trip_table that receives data of type boolean. Trips are by default created with this as false. Closed by cfb9503

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

1 participant