POST api/Driver/GeoLocation

Request Information

URI Parameters

None.

Body Parameters

GeoLocationModel
NameDescriptionTypeAdditional information
VehicleID

integer

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

DateTimeStamp

date

None.

VehicleStatus

byte

None.

PickupID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "VehicleID": 1,
  "Latitude": 1.0,
  "Longitude": 1.0,
  "DateTimeStamp": "2026-02-21T23:35:54.5823924+05:30",
  "VehicleStatus": 64,
  "PickupID": 1
}

text/html

Sample:
{"VehicleID":1,"Latitude":1.0,"Longitude":1.0,"DateTimeStamp":"2026-02-21T23:35:54.5823924+05:30","VehicleStatus":64,"PickupID":1}

application/xml, text/xml

Sample:
<GeoLocationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WITTravels.Models">
  <DateTimeStamp>2026-02-21T23:35:54.5823924+05:30</DateTimeStamp>
  <Latitude>1</Latitude>
  <Longitude>1</Longitude>
  <PickupID>1</PickupID>
  <VehicleID>1</VehicleID>
  <VehicleStatus>64</VehicleStatus>
</GeoLocationModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MethodResult
NameDescriptionTypeAdditional information
Status

boolean

None.

Message

string

None.

Id

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": true,
  "Message": "sample string 2",
  "Id": 3
}

text/html

Sample:
{"Status":true,"Message":"sample string 2","Id":3}

application/xml, text/xml

Sample:
<MethodResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WITTravels.Models">
  <Id>3</Id>
  <Message>sample string 2</Message>
  <Status>true</Status>
</MethodResult>