POST api/SocialDriver/GetLastJourneysByDate?serviceId={serviceId}
Gets the last x number of journeys from a certain data
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
serviceId |
Optional service id |
unsigned integer |
Default value is 0 |
Body Parameters
The ViewLastJourneysRequest
ViewLastJourneysRequestWithDateName | Description | Type | Additional information |
---|---|---|---|
NumberOfJourneys |
The number of journeys required |
integer |
None. |
ScoreType |
The score type queried |
SocialDriverScoreType |
None. |
StartDate |
Will start looking for journeys before this date |
date |
None. |
Request Formats
application/json, text/json
Sample:
{ "NumberOfJourneys": 1, "ScoreType": 0, "StartDate": "2025-04-27T16:11:07.4975903+00:00" }
application/xml, text/xml
Sample:
<ViewLastJourneysRequestWithDate xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <NumberOfJourneys>1</NumberOfJourneys> <ScoreType>Safety</ScoreType> <StartDate>2025-04-27T16:11:07.4975903+00:00</StartDate> </ViewLastJourneysRequestWithDate>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ViewJourneyResponseName | Description | Type | Additional information |
---|---|---|---|
Journeys |
A collection of journeys |
Collection of SocialDriverJourney |
None. |
Response Formats
application/json, text/json
Sample:
{ "Journeys": [ { "IdleScore": 1, "DistanceScore": 2, "DistanceTravelled": 3, "OffsetDistanceTravelled": 4, "OverallScore": 5, "AccelScore": 6, "DecelScore": 7, "SpeedScore": 8, "UrbanScore": 9, "NightScore": 10, "IdlingTime": 11, "StartAddress": "sample string 12", "EndAddress": "sample string 13", "StartTime": "2025-04-27T16:11:07.4975903+00:00", "EndTime": "2025-04-27T16:11:07.4975903+00:00", "Duration": 16, "JourneyDetection": 0, "PrivateJourney": true, "Comment": "sample string 18" }, { "IdleScore": 1, "DistanceScore": 2, "DistanceTravelled": 3, "OffsetDistanceTravelled": 4, "OverallScore": 5, "AccelScore": 6, "DecelScore": 7, "SpeedScore": 8, "UrbanScore": 9, "NightScore": 10, "IdlingTime": 11, "StartAddress": "sample string 12", "EndAddress": "sample string 13", "StartTime": "2025-04-27T16:11:07.4975903+00:00", "EndTime": "2025-04-27T16:11:07.4975903+00:00", "Duration": 16, "JourneyDetection": 0, "PrivateJourney": true, "Comment": "sample string 18" } ] }
application/xml, text/xml
Sample:
<ViewJourneyResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Journeys> <SocialDriverJourney> <IdleScore>1</IdleScore> <DistanceScore>2</DistanceScore> <DistanceTravelled>3</DistanceTravelled> <OffsetDistanceTravelled>4</OffsetDistanceTravelled> <OverallScore>5</OverallScore> <AccelScore>6</AccelScore> <DecelScore>7</DecelScore> <SpeedScore>8</SpeedScore> <UrbanScore>9</UrbanScore> <NightScore>10</NightScore> <IdlingTime>11</IdlingTime> <StartAddress>sample string 12</StartAddress> <EndAddress>sample string 13</EndAddress> <StartTime>2025-04-27T16:11:07.4975903+00:00</StartTime> <EndTime>2025-04-27T16:11:07.4975903+00:00</EndTime> <Duration>16</Duration> <JourneyDetection>None</JourneyDetection> <PrivateJourney>true</PrivateJourney> <Comment>sample string 18</Comment> </SocialDriverJourney> <SocialDriverJourney> <IdleScore>1</IdleScore> <DistanceScore>2</DistanceScore> <DistanceTravelled>3</DistanceTravelled> <OffsetDistanceTravelled>4</OffsetDistanceTravelled> <OverallScore>5</OverallScore> <AccelScore>6</AccelScore> <DecelScore>7</DecelScore> <SpeedScore>8</SpeedScore> <UrbanScore>9</UrbanScore> <NightScore>10</NightScore> <IdlingTime>11</IdlingTime> <StartAddress>sample string 12</StartAddress> <EndAddress>sample string 13</EndAddress> <StartTime>2025-04-27T16:11:07.4975903+00:00</StartTime> <EndTime>2025-04-27T16:11:07.4975903+00:00</EndTime> <Duration>16</Duration> <JourneyDetection>None</JourneyDetection> <PrivateJourney>true</PrivateJourney> <Comment>sample string 18</Comment> </SocialDriverJourney> </Journeys> </ViewJourneyResponse>