POST api/tracking/addlocation

Request Information

URI Parameters

None.

Body Parameters

VehicleLocation
NameDescriptionTypeAdditional information
VehLocId

integer

None.

TripId

integer

None.

VehicleId

integer

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

LocationTime

date

None.

Speed

decimal number

None.

InstId

integer

None.

IsDeleted

boolean

None.

IsActive

boolean

None.

AddedBy

string

None.

UpdatedBy

string

None.

AddedTime

date

None.

UpdatedTime

date

None.

FromDate

date

None.

ToDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "VehLocId": 1,
  "TripId": 2,
  "VehicleId": 3,
  "Latitude": 4.1,
  "Longitude": 5.1,
  "LocationTime": "2026-08-07T17:49:04.9453755+05:30",
  "Speed": 7.1,
  "InstId": 8,
  "IsDeleted": true,
  "IsActive": true,
  "AddedBy": "sample string 11",
  "UpdatedBy": "sample string 12",
  "AddedTime": "2026-08-07T17:49:04.9453755+05:30",
  "UpdatedTime": "2026-08-07T17:49:04.9463762+05:30",
  "FromDate": "2026-08-07T17:49:04.9463762+05:30",
  "ToDate": "2026-08-07T17:49:04.9463762+05:30"
}

application/xml, text/xml

Sample:
<VehicleLocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/School.Business.Transport">
  <AddedBy>sample string 11</AddedBy>
  <AddedTime>2026-08-07T17:49:04.9453755+05:30</AddedTime>
  <FromDate>2026-08-07T17:49:04.9463762+05:30</FromDate>
  <InstId>8</InstId>
  <IsActive>true</IsActive>
  <IsDeleted>true</IsDeleted>
  <Latitude>4.1</Latitude>
  <LocationTime>2026-08-07T17:49:04.9453755+05:30</LocationTime>
  <Longitude>5.1</Longitude>
  <Speed>7.1</Speed>
  <ToDate>2026-08-07T17:49:04.9463762+05:30</ToDate>
  <TripId>2</TripId>
  <UpdatedBy>sample string 12</UpdatedBy>
  <UpdatedTime>2026-08-07T17:49:04.9463762+05:30</UpdatedTime>
  <VehLocId>1</VehLocId>
  <VehicleId>3</VehicleId>
</VehicleLocation>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResponseOfInt64
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Data

integer

None.

StatusCode

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Data": 3,
  "StatusCode": 4
}

application/xml, text/xml

Sample:
<ApiResponseOflong xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/School.Business.Api">
  <Data>3</Data>
  <Message>sample string 2</Message>
  <StatusCode>4</StatusCode>
  <Success>true</Success>
</ApiResponseOflong>