Trips

Trip List

This api allows you to list the trips that has been created overall.

GET https://api.teliver.xyz/v1/trips

Paramters

Parameters

Required

Values

Description

apikey

Yes

The api key is the unique identfier for your respective application. (You can get it from your Dashboard). Always pass this as query parameter.

page

No

default: 1

Page that has to be fetched.

limit

No

default: 20

Sets the number of results limiting.

status

No

default: 0 (All) , 1 - Active Trip, 2 - Stopped Trip, 3 - Discarded

Returns the trips with given status.

operator_id

No

Returns the list of trips associate with given Operator id.

tracking_id

No

Returns the list of trips associate with given tracking id.

Response

{  
   "message":"Trips",
   "success":true,
   "data":{  
      "trips":[  
         {  
            "_id":"trip_id_here",
            "created_at":"2017-08-29T15:08:54.639Z",
            "ttl":"2017-08-29T17:08:54.628Z",
            "tracking_id":"test",
            "status":"2",
            "ends_at":"13.0039875,80.2628844",
            "end_location":"4th St, Venkateswara Nagar, Adyar, Chennai, Tamil Nadu 600020, India",
            "starts_at":"13.0039875,80.2628844",
            "start_location":"4th St, Venkateswara Nagar, Adyar, Chennai, Tamil Nadu 600020, India",
            "agent_id":"test_driver"
         },
         {  
            "_id":"trip_id_here",
            "created_at":"2017-08-18T14:41:18.281Z",
            "ttl":"2017-08-18T16:41:18.270Z",
            "tracking_id":"test",
            "status":"3",
            "ends_at":"",
            "end_location":"",
            "starts_at":"13.0712874,80.2827595",
            "start_location":"Chennai Port – Maduravoyal Expy, Port Trust Officers Quarters, The Island, Chintadripet, Chennai, Tamil Nadu 600002, India",
            "agent_id":"test_driver"
         }
      ]
   }
}

Retrieve a Trip

This api allows you to get a particular trip with trip id.

GET https://api.teliver.xyz/v1/trips/trip_id_here

Paramters

Parameters

Required

Values

Description

apikey

Yes

The api key is the unique identfier for your respective application. (You can get it from your Dashboard)

Last updated