You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: