POST api/mobile/mobileservicejourney
Request Information
URI Parameters
None.
Body Parameters
MobileServiceJourneyRequestName | Description | Type | Additional information |
---|---|---|---|
Token |
The token returned after login used for authentication |
string |
None. |
UserID |
The user id returned after login used for authentication |
unsigned integer |
None. |
ServiceID |
The service id you are requesting journeys for |
unsigned integer |
None. |
StartDate |
The start date being queried |
date |
None. |
EndDate |
The end date being queried |
date |
None. |
Request Formats
application/json, text/json
{ "Token": "sample string 1", "UserID": 2, "ServiceID": 3, "StartDate": "2025-04-27T16:37:11.4432252+00:00", "EndDate": "2025-04-27T16:37:11.4432252+00:00" }
application/xml, text/xml
<MobileServiceJourneyRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Token>sample string 1</Token> <UserID>2</UserID> <ServiceID>3</ServiceID> <StartDate>2025-04-27T16:37:11.4432252+00:00</StartDate> <EndDate>2025-04-27T16:37:11.4432252+00:00</EndDate> </MobileServiceJourneyRequest>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
Collection of MobileServiceJourneyResponseName | Description | Type | Additional information |
---|---|---|---|
ServiceID |
The service id |
unsigned integer |
None. |
Duration |
The journey duration in seconds |
integer |
None. |
IdleDuration |
The journey duration in seconds |
integer |
None. |
Distance |
The journey distance in meters |
integer |
None. |
StartDate |
The time the journey started |
date |
None. |
EndDate |
The time the journey ended |
date |
None. |
StartStreet |
The start street |
string |
None. |
StartTown |
The start town |
string |
None. |
StartCountry |
The start country |
string |
None. |
StartPostcode |
The start postcode |
string |
None. |
EndStreet |
The end street |
string |
None. |
EndTown |
The end town |
string |
None. |
EndCountry |
The end country |
string |
None. |
EndPostcode |
The end postcode |
string |
None. |
SpeedingEventCount |
The number of speeding events |
integer |
None. |
IsPrivate |
True if the journey is private, false if the journey is business |
boolean |
None. |
DriverName |
The drivers name |
string |
None. |
Response Formats
application/json, text/json
[ { "ServiceID": 1, "Duration": 2, "IdleDuration": 3, "Distance": 4, "StartDate": "2025-04-27T16:37:11.4432252+00:00", "EndDate": "2025-04-27T16:37:11.4432252+00:00", "StartStreet": "sample string 7", "StartTown": "sample string 8", "StartCountry": "sample string 9", "StartPostcode": "sample string 10", "EndStreet": "sample string 11", "EndTown": "sample string 12", "EndCountry": "sample string 13", "EndPostcode": "sample string 14", "SpeedingEventCount": 15, "IsPrivate": true, "DriverName": "sample string 17" }, { "ServiceID": 1, "Duration": 2, "IdleDuration": 3, "Distance": 4, "StartDate": "2025-04-27T16:37:11.4432252+00:00", "EndDate": "2025-04-27T16:37:11.4432252+00:00", "StartStreet": "sample string 7", "StartTown": "sample string 8", "StartCountry": "sample string 9", "StartPostcode": "sample string 10", "EndStreet": "sample string 11", "EndTown": "sample string 12", "EndCountry": "sample string 13", "EndPostcode": "sample string 14", "SpeedingEventCount": 15, "IsPrivate": true, "DriverName": "sample string 17" } ]
application/xml, text/xml
<ArrayOfMobileServiceJourneyResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <MobileServiceJourneyResponse> <ServiceID>1</ServiceID> <Duration>2</Duration> <IdleDuration>3</IdleDuration> <Distance>4</Distance> <StartDate>2025-04-27T16:37:11.4432252+00:00</StartDate> <EndDate>2025-04-27T16:37:11.4432252+00:00</EndDate> <StartStreet>sample string 7</StartStreet> <StartTown>sample string 8</StartTown> <StartCountry>sample string 9</StartCountry> <StartPostcode>sample string 10</StartPostcode> <EndStreet>sample string 11</EndStreet> <EndTown>sample string 12</EndTown> <EndCountry>sample string 13</EndCountry> <EndPostcode>sample string 14</EndPostcode> <SpeedingEventCount>15</SpeedingEventCount> <IsPrivate>true</IsPrivate> <DriverName>sample string 17</DriverName> </MobileServiceJourneyResponse> <MobileServiceJourneyResponse> <ServiceID>1</ServiceID> <Duration>2</Duration> <IdleDuration>3</IdleDuration> <Distance>4</Distance> <StartDate>2025-04-27T16:37:11.4432252+00:00</StartDate> <EndDate>2025-04-27T16:37:11.4432252+00:00</EndDate> <StartStreet>sample string 7</StartStreet> <StartTown>sample string 8</StartTown> <StartCountry>sample string 9</StartCountry> <StartPostcode>sample string 10</StartPostcode> <EndStreet>sample string 11</EndStreet> <EndTown>sample string 12</EndTown> <EndCountry>sample string 13</EndCountry> <EndPostcode>sample string 14</EndPostcode> <SpeedingEventCount>15</SpeedingEventCount> <IsPrivate>true</IsPrivate> <DriverName>sample string 17</DriverName> </MobileServiceJourneyResponse> </ArrayOfMobileServiceJourneyResponse>