Implementing trips based on source and destination instead of parking time

ssan7 years ago

I am trying to implement trips based on the location of source and destination(destination is same as source point). When the vehicle starts from source and reaches the destination, it is considered as one trip complete. Also, this source and destination location will remain same for every trip. I was thinking of using geofences in source and destination. Start the trip when the vehicle exits out of the source point(circle geofence) and end trip when the vehicle enters destination geofence. Please suggest any other ideas? Also how to differentiate trip geofences from other geofences(meant for sending notification) if I store in the same "geofences" table?

Anton Tananaev7 years ago

Geofences should work. You can probably have another field that would link to geofence that you want to use as a trip source/destination.

ssan7 years ago

Thanks, Anton. As you suggested, I am creating a boolean field in the "geofences" table to identify geofence for the trip source/destination.