POST api/DriverLogin/GetNearestDriver

Request Information

URI Parameters

None.

Body Parameters

NearestDriver
NameDescriptionTypeAdditional information
PassengerId

integer

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

DriverID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "PassengerId": 1,
  "Latitude": 2.1,
  "Longitude": 3.1,
  "DriverID": 4
}

application/xml, text/xml

Sample:
<NearestDriver xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DriverDbContext.MetaData">
  <DriverID>4</DriverID>
  <Latitude>2.1</Latitude>
  <Longitude>3.1</Longitude>
  <PassengerId>1</PassengerId>
</NearestDriver>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.