End Trip (Android)

Explore how to end a trip on Android with Trips v2.

the End Trip method allows you to end the trip with the previously created tripID. If you want to stop tracking, then you can pass stopTracking as true or false.

 Roam.endTrip("tripId",true, new RoamTripCallback() {
                            @Override
                            public void onSuccess(RoamTripResponse response) {
                               //get trip details
                            }

                            @Override
                            public void onError(Error error) {
                             //get error details  
                            }
                        });

The trip response and its parameters are similar to those of the createTrip method.

Last updated