GET api/mobile/mobileservicejourney?userID={userID}&token={token}&serviceID={serviceID}&startDate={startDate}&endDate={endDate}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
userID | unsigned integer |
Required |
|
token | string |
Required |
|
serviceID | unsigned integer |
Required |
|
startDate | string |
Required |
|
endDate | string |
Required |
Body Parameters
None.
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
Sample:
[ { "ServiceID": 1, "Duration": 2, "IdleDuration": 3, "Distance": 4, "StartDate": "2025-04-27T16:30:15.7958779+00:00", "EndDate": "2025-04-27T16:30:15.7958779+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:30:15.7958779+00:00", "EndDate": "2025-04-27T16:30:15.7958779+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
Sample:
<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:30:15.7958779+00:00</StartDate> <EndDate>2025-04-27T16:30:15.7958779+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:30:15.7958779+00:00</StartDate> <EndDate>2025-04-27T16:30:15.7958779+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>