Trip Closure

Automatic Closure of a Trip

Automatic closure of trips can be configured. Often companies configure automatic closure of trips on one of the following events:

A. Auto Closure

  1. When vehicle enters the destination → This is when first geo location is ping is received inside destination geo-fence.

    Freight Tiger UI View

    Closure Mode → Auto Closed
    Closed Reason → on_entry

    Vehicle entering destination geofence (first ping received inside destination geofence)

     

  2. When vehicle exits the destination → This is when first geo location ping is received from outside the destination geo-fence after vehicle has once entered the destination geo-fence.

    Freight Tiger UI View

    Closure Mode → Auto Closed
    Closed Reason → on_exit



  3. When ePOD is submitted → Trip can be auto closed on ePOD submission.



B. Auto Termination

expiry → Trip will be closed after flat X days from the time of Trip Creation, (X days, as configured)

Common Asset → When a new trip is created with the same vehicle number / mobile number / portable device / gps device / driver app. Previous trip can be auto closed. (If enabled for the account)

 


 

Manual Closure

Trip closed manually by the user from Freight Tiger UI (My Trips Page)


Calling of Close Trip API

Close Trip API can be called from any ERP system. An ERP event can be identified as the trigger for the API.

Refer: https://freighttiger.gitlab.io/api-docs/#/Close%20Trip/post_saas_trip_close .

In this case, the mode of closure is set as “API”.

  1. You can pass any timestamp in the Close Trip API which is post Trip Creation time.

  2. You can also send a past date for trip closure. For instance, if the GRN has happened yesterday and you want to call Close Trip API now with yesterday's date and time, you can pass the respective timestamp in the Close Trip API.

 

 

How can Trip Close API be consumed when the vehicle re-reports and a new trip is created with the same vehicle?

You may consume our Get Multiple Trip API with vehicleNumber as parameter for checking if any trips with “OPEN” status exist for the vehicle and close this trip by triggering Close Trip API for the same.

 

Post your questions in the comment box to get answers from the experts who watch this page.

For engineering support: visit FT Support