Cab Ride Tracking


GET /v1/bookings/track_ride

Ride tracking is available for cabs booked by a registered Ola user.

By providing your partner token and a valid authorization code, you can provide your users the following benefits.

  • Track a cab on its way to the pickup point.
  • Get estimated time of arrival to pickup point.
  • Track location of the cab while the trip is in progress.
  • Invoice of the ride can be viewed after ride completion..
Name Data Type Description Type
booking_id string booking id, ex: CRN82053435 Payload
Authorization string Authorization Token identifies the user Header
X-APP-TOKEN string Key which identifies the partner Header

Example Request

GET

https://devapi.olacabs.com/v1/bookings/track_ride?booking_id=CRN82053435


"headers": {
    "Authorization": "Bearer baac2cfc6be4489ab044f7d98bff24bf",
    "X-APP-TOKEN": "6a53bcbe222c490196e4b9f87ba9148c"
}

Example Response

Call Driver

     
{
  "status": "SUCCESS",
  "request_type": "TRACK_RIDE",
  "booking_id": "CRN120631251",
  "driver_name": "John Snow",
  "driver_number": "9999999999",
  "cab_details": {
    "cab_type": "mini",
    "cab_number": "KA 01 ZZ 0001",
    "car_model": "A30",
    "car_color": "Yellow"
  },
  "driver_image_url": "http://s3-ap-southeast-1.amazonaws.com/ola-ims-drivers/development/drivers/1000810/original_blacklistcar.png",
  "driver_rating": 4.84777,
  "pickup_lat": 12.9490936,
  "pickup_lng": 77.6443056,
  "drop_lat": 0,
  "drop_lng": 0,
  "driver_lat": 12.9500278,
  "driver_lng": 77.6416929,
  "duration": {
    "value": 2,
    "unit": "MINUTES"
  },
  "distance": {
    "value": 391,
    "unit": "METER"
  },
  "booking_status": "CALL_DRIVER",
  "share_ride_url": "https://olacabs-dev.in/track/43j1bujho"
}
    

Client located

     
{
  "status": "SUCCESS",
  "request_type": "TRACK_RIDE",
  "booking_id": "CRN120631251",
  "driver_name": "John Snow",
  "driver_number": "9999999999",
  "cab_details": {
    "cab_type": "mini",
    "cab_number": "KA 01 ZZ 0001",
    "car_model": "A30",
    "car_color": "Yellow"
  },
  "driver_image_url": "http://s3-ap-southeast-1.amazonaws.com/ola-ims-drivers/development/drivers/1000810/original_blacklistcar.png",
  "driver_rating": 4.84777,
  "pickup_lat": 12.9490936,
  "pickup_lng": 77.6443056,
  "drop_lat": 0,
  "drop_lng": 0,
  "driver_lat": 12.9500278,
  "driver_lng": 77.6416929,
  "booking_status": "CLIENT_LOCATED",
  "share_ride_url": "https://olacabs-dev.in/track/43j1bujho"
}   

    

Trip-Start

    

{
  "status": "SUCCESS",
  "request_type": "TRACK_RIDE",
  "booking_id": "CRN120631251",
  "driver_name": "John Snow",
  "driver_number": "9999999999",
  "cab_details": {
    "cab_type": "mini",
    "cab_number": "KA 01 ZZ 0001",
    "car_model": "A30",
    "car_color": "Yellow"
  },
  "driver_image_url": "http://s3-ap-southeast-1.amazonaws.com/ola-ims-drivers/development/drivers/1000810/original_blacklistcar.png",
  "driver_rating": 4.84777,
  "pickup_lat": 12.9490936,
  "pickup_lng": 77.6443056,
  "drop_lat": 0,
  "drop_lng": 0,
  "driver_lat": 12.9500278,
  "driver_lng": 77.641693,
  "booking_status": "IN_PROGRESS",
  "share_ride_url": "https://olacabs-dev.in/track/43j1bujho"
}
    

Trip-End

    

{
  "status": "SUCCESS",
  "request_type": "TRACK_RIDE",
  "booking_id": "CRN120574712",
  "pickup_lat": 12.9314583,
  "pickup_lng": 77.62998579999999,
  "drop_lat": 0,
  "drop_lng": 0,
  "ola_money_balance": 0,
  "trip_info": {
    "amount": 230,
    "payable_amount": 230,
    "distance": {
      "value": 0,
      "unit": "KMS"
    },
    "trip_time": {
      "value": 1,
      "unit": "MINUTE"
    },
    "wait_time": {
      "value": 1,
      "unit": "MINUTE"
    },
    "discount": 0,
    "advance": 0
  },
  "fare_breakup": [
    {
      "display_text": "Total Fare",
      "value": 100
    },
    {
      "display_text": "Total Bill",
      "value": 100
    },
    {
      "display_text": "Cancellation Fee",
      "value": 130
    }
  ],
  "booking_status": "COMPLETED"
}
    

Track ride in case of Booking cancelled Response

    

{
  "status": "SUCCESS",
  "request_type": "TRACK_RIDE",
  "booking_id": "CRN120631274",
  "pickup_lat": 12.9490936,
  "pickup_lng": 77.6443056,
  "drop_lat": 0,
  "drop_lng": 0,
  "booking_status": "BOOKING_CANCELLED"
}