POST api/gps/route/v2

Request Information

URI Parameters

None.

Body Parameters

JsonGpsApiInputV2
NameDescriptionTypeAdditional information
PrivateCode

string

None.

FromDate

date

None.

ToDate

date

None.

CustomerCode

string

None.

Key

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PrivateCode": "sample string 1",
  "FromDate": "2026-04-04T18:10:38.1989254+07:00",
  "ToDate": "2026-04-04T18:10:38.1989254+07:00",
  "CustomerCode": "sample string 4",
  "Key": "sample string 5"
}

application/xml, text/xml

Sample:
<JsonGpsApiInputV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Model">
  <CustomerCode>sample string 4</CustomerCode>
  <Key>sample string 5</Key>
  <FromDate>2026-04-04T18:10:38.1989254+07:00</FromDate>
  <PrivateCode>sample string 1</PrivateCode>
  <ToDate>2026-04-04T18:10:38.1989254+07:00</ToDate>
</JsonGpsApiInputV2>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

JsonGpsApiRsRouteV2
NameDescriptionTypeAdditional information
MessageResult

string

None.

Routes

Collection of RouteV2

None.

Response Formats

application/json, text/json

Sample:
{
  "MessageResult": "sample string 1",
  "Routes": [
    {
      "Direction": 1,
      "SecondsOfDrivingTimeContinuous": 2,
      "SecondsOfDrivingTimeInDay": 3,
      "DriverName": "sample string 4",
      "DisplayName": "sample string 5",
      "DriverLicense": "sample string 6",
      "UTCTime": "2026-04-04T18:10:38.2145486+07:00",
      "LocalTime": "2026-04-04T18:10:38.2145486+07:00",
      "Latitude": 9.1,
      "Longitude": 10.1,
      "Speed": 11,
      "Address": "sample string 12",
      "Kmgps": 13.1,
      "State": 14,
      "NumberOfLiters": 15.1,
      "NumberOfLiterTwos": 16.1,
      "LstTemperature": [
        1.1,
        2.1
      ],
      "IsMachineOn": true
    },
    {
      "Direction": 1,
      "SecondsOfDrivingTimeContinuous": 2,
      "SecondsOfDrivingTimeInDay": 3,
      "DriverName": "sample string 4",
      "DisplayName": "sample string 5",
      "DriverLicense": "sample string 6",
      "UTCTime": "2026-04-04T18:10:38.2145486+07:00",
      "LocalTime": "2026-04-04T18:10:38.2145486+07:00",
      "Latitude": 9.1,
      "Longitude": 10.1,
      "Speed": 11,
      "Address": "sample string 12",
      "Kmgps": 13.1,
      "State": 14,
      "NumberOfLiters": 15.1,
      "NumberOfLiterTwos": 16.1,
      "LstTemperature": [
        1.1,
        2.1
      ],
      "IsMachineOn": true
    }
  ]
}

application/xml, text/xml

Sample:
<JsonGpsApiRsRouteV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Model">
  <MessageResult>sample string 1</MessageResult>
  <Routes>
    <RouteV2>
      <Address>sample string 12</Address>
      <IsMachineOn>true</IsMachineOn>
      <Kmgps>13.1</Kmgps>
      <Latitude>9.1</Latitude>
      <LocalTime>2026-04-04T18:10:38.2145486+07:00</LocalTime>
      <Longitude>10.1</Longitude>
      <LstTemperature xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:double>1.1</d4p1:double>
        <d4p1:double>2.1</d4p1:double>
      </LstTemperature>
      <NumberOfLiterTwos>16.1</NumberOfLiterTwos>
      <NumberOfLiters>15.1</NumberOfLiters>
      <Speed>11</Speed>
      <State>14</State>
      <UTCTime>2026-04-04T18:10:38.2145486+07:00</UTCTime>
      <Direction>1</Direction>
      <DisplayName>sample string 5</DisplayName>
      <DriverLicense>sample string 6</DriverLicense>
      <DriverName>sample string 4</DriverName>
      <SecondsOfDrivingTimeContinuous>2</SecondsOfDrivingTimeContinuous>
      <SecondsOfDrivingTimeInDay>3</SecondsOfDrivingTimeInDay>
    </RouteV2>
    <RouteV2>
      <Address>sample string 12</Address>
      <IsMachineOn>true</IsMachineOn>
      <Kmgps>13.1</Kmgps>
      <Latitude>9.1</Latitude>
      <LocalTime>2026-04-04T18:10:38.2145486+07:00</LocalTime>
      <Longitude>10.1</Longitude>
      <LstTemperature xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:double>1.1</d4p1:double>
        <d4p1:double>2.1</d4p1:double>
      </LstTemperature>
      <NumberOfLiterTwos>16.1</NumberOfLiterTwos>
      <NumberOfLiters>15.1</NumberOfLiters>
      <Speed>11</Speed>
      <State>14</State>
      <UTCTime>2026-04-04T18:10:38.2145486+07:00</UTCTime>
      <Direction>1</Direction>
      <DisplayName>sample string 5</DisplayName>
      <DriverLicense>sample string 6</DriverLicense>
      <DriverName>sample string 4</DriverName>
      <SecondsOfDrivingTimeContinuous>2</SecondsOfDrivingTimeContinuous>
      <SecondsOfDrivingTimeInDay>3</SecondsOfDrivingTimeInDay>
    </RouteV2>
  </Routes>
</JsonGpsApiRsRouteV2>