Retrieve Available Drivers


Description

End point will list out the nearest available drivers location based on the current location value.


Resource

/pbb/adm/retrieveallavailabledrivers


Name Type Description
vehicleType * int Set 1 for Bike, 2 for Mini and 3 for Maxi Vehicle
latitude * Double GPS details of the Location
longitude * Double GPS details of the Location

Request

{
    "vehicleType":1,
    "latitude":13.13,
    "longitude":80.80
}
{
    "responseCode":"1000",
    "errors":null,
    "coordinates":[
        [10.10,81.81,128]
      ],
    "nearby":[
        [13.10,80.10,131]
      ],
    "nearest":
        [13.13,80.10,342]
}

Error

{
  "responseCode": "1001",
  "errors": [
      {
          "code": "TI.0.11.19",
          "data": null
      }
    ],
  "isValid": null,
  "coordinates": null,
  "nearby": [],
  "nearest": null                        
}