POST api/driver/update-location

Request Information

URI Parameters

None.

Body Parameters

DriverLocation
NameDescriptionTypeAdditional information
DriverID

integer

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Accuracy

decimal number

None.

Speed

decimal number

None.

Heading

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "DriverID": 1,
  "Latitude": 2.0,
  "Longitude": 3.0,
  "Accuracy": 1.0,
  "Speed": 1.0,
  "Heading": 1.0
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DriverLocation'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.