POST api/GetAvailableDriversbyLocation

Request Information

URI Parameters

None.

Body Parameters

GetAvailableDriversbyLocationPost
NameDescriptionTypeAdditional information
PickUpLatLong

string

None.

RideType

integer

None.

Radius

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "PickUpLatLong": "sample string 1",
  "RideType": 2,
  "Radius": 3
}

application/xml, text/xml

Sample:
<GetAvailableDriversbyLocationPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models.CurrentLocation.Post">
  <PickUpLatLong>sample string 1</PickUpLatLong>
  <Radius>3</Radius>
  <RideType>2</RideType>
</GetAvailableDriversbyLocationPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GetAvailableDriversbyLocationResponse
NameDescriptionTypeAdditional information
AllDrivers

Collection of CurrentLocationDetails

None.

Response Formats

application/json, text/json

Sample:
{
  "AllDrivers": [
    {
      "CurrentLocationId": 1,
      "DriverId": 1,
      "IsOnRide": true,
      "CurrentLocationLatLng": "sample string 2",
      "CurrentLocationAddress": "sample string 3",
      "CurrentLocationDateTime": "sample string 4",
      "IsOnline": true,
      "OnRideId": 1,
      "LastOnlineDateTime": "sample string 5"
    },
    {
      "CurrentLocationId": 1,
      "DriverId": 1,
      "IsOnRide": true,
      "CurrentLocationLatLng": "sample string 2",
      "CurrentLocationAddress": "sample string 3",
      "CurrentLocationDateTime": "sample string 4",
      "IsOnline": true,
      "OnRideId": 1,
      "LastOnlineDateTime": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<GetAvailableDriversbyLocationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models.CurrentLocation.Response">
  <AllDrivers>
    <CurrentLocationDetails>
      <CurrentLocationAddress>sample string 3</CurrentLocationAddress>
      <CurrentLocationDateTime>sample string 4</CurrentLocationDateTime>
      <CurrentLocationId>1</CurrentLocationId>
      <CurrentLocationLatLng>sample string 2</CurrentLocationLatLng>
      <DriverId>1</DriverId>
      <IsOnRide>true</IsOnRide>
      <IsOnline>true</IsOnline>
      <LastOnlineDateTime>sample string 5</LastOnlineDateTime>
      <OnRideId>1</OnRideId>
    </CurrentLocationDetails>
    <CurrentLocationDetails>
      <CurrentLocationAddress>sample string 3</CurrentLocationAddress>
      <CurrentLocationDateTime>sample string 4</CurrentLocationDateTime>
      <CurrentLocationId>1</CurrentLocationId>
      <CurrentLocationLatLng>sample string 2</CurrentLocationLatLng>
      <DriverId>1</DriverId>
      <IsOnRide>true</IsOnRide>
      <IsOnline>true</IsOnline>
      <LastOnlineDateTime>sample string 5</LastOnlineDateTime>
      <OnRideId>1</OnRideId>
    </CurrentLocationDetails>
  </AllDrivers>
</GetAvailableDriversbyLocationResponse>