POST api/SocialDriver/ProcessJourney

Upload the data for a journey

Request Information

URI Parameters

None.

Body Parameters

CreateJourneyRequest
NameDescriptionTypeAdditional information
JourneyEndDetection

How the journey end was detected

JourneyDetection

None.

MinsToTrim

Minutes to trim

integer

None.

MobileTelemetry

The mobile telemetry

Collection of SocialDriverMobileTelemetry

None.

Request Formats

application/json, text/json

Sample:
{
  "JourneyEndDetection": 0,
  "MinsToTrim": 1,
  "MobileTelemetry": [
    {
      "AccelDecel": 1.1,
      "GpsFix": 2,
      "GpsLatitude": 3.1,
      "GpsLongitude": 4.1,
      "GpsOrientation": 5.1,
      "GpsSpeed": 6.1,
      "GpsTime": "2025-04-27T15:35:28.6640176+00:00",
      "MsgType": 8,
      "BatteryVoltage": 9.1,
      "MilCodes": [
        "sample string 1",
        "sample string 2"
      ],
      "RawMilCodeData": "sample string 10",
      "Odometer": 11
    },
    {
      "AccelDecel": 1.1,
      "GpsFix": 2,
      "GpsLatitude": 3.1,
      "GpsLongitude": 4.1,
      "GpsOrientation": 5.1,
      "GpsSpeed": 6.1,
      "GpsTime": "2025-04-27T15:35:28.6640176+00:00",
      "MsgType": 8,
      "BatteryVoltage": 9.1,
      "MilCodes": [
        "sample string 1",
        "sample string 2"
      ],
      "RawMilCodeData": "sample string 10",
      "Odometer": 11
    }
  ]
}

application/xml, text/xml

Sample:
<CreateJourneyRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <JourneyEndDetection>None</JourneyEndDetection>
  <MinsToTrim>1</MinsToTrim>
  <MobileTelemetry>
    <SocialDriverMobileTelemetry>
      <AccelDecel>1.1</AccelDecel>
      <GpsFix>2</GpsFix>
      <GpsLatitude>3.1</GpsLatitude>
      <GpsLongitude>4.1</GpsLongitude>
      <GpsOrientation>5.1</GpsOrientation>
      <GpsSpeed>6.1</GpsSpeed>
      <GpsTime>2025-04-27T15:35:28.6640176+00:00</GpsTime>
      <MsgType>8</MsgType>
      <BatteryVoltage>9.1</BatteryVoltage>
      <MilCodes>
        <string>sample string 1</string>
        <string>sample string 2</string>
      </MilCodes>
      <RawMilCodeData>sample string 10</RawMilCodeData>
      <Odometer>11</Odometer>
    </SocialDriverMobileTelemetry>
    <SocialDriverMobileTelemetry>
      <AccelDecel>1.1</AccelDecel>
      <GpsFix>2</GpsFix>
      <GpsLatitude>3.1</GpsLatitude>
      <GpsLongitude>4.1</GpsLongitude>
      <GpsOrientation>5.1</GpsOrientation>
      <GpsSpeed>6.1</GpsSpeed>
      <GpsTime>2025-04-27T15:35:28.6640176+00:00</GpsTime>
      <MsgType>8</MsgType>
      <BatteryVoltage>9.1</BatteryVoltage>
      <MilCodes>
        <string>sample string 1</string>
        <string>sample string 2</string>
      </MilCodes>
      <RawMilCodeData>sample string 10</RawMilCodeData>
      <Odometer>11</Odometer>
    </SocialDriverMobileTelemetry>
  </MobileTelemetry>
</CreateJourneyRequest>

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.