POST apimobileoauth/mobile/mobileservicejourney

Get journeys for a service id and date

Request Information

URI Parameters

None.

Body Parameters

The request

OAuthMobileServiceJourneyRequest
NameDescriptionTypeAdditional information
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

Sample:
{
  "ServiceID": 1,
  "StartDate": "2025-04-27T16:50:13.7222708+00:00",
  "EndDate": "2025-04-27T16:50:13.7222708+00:00"
}

application/xml, text/xml

Sample:
<OAuthMobileServiceJourneyRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ServiceID>1</ServiceID>
  <StartDate>2025-04-27T16:50:13.7222708+00:00</StartDate>
  <EndDate>2025-04-27T16:50:13.7222708+00:00</EndDate>
</OAuthMobileServiceJourneyRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

A collection of MobileServiceJourneyResponses

Collection of MobileServiceJourneyResponse
NameDescriptionTypeAdditional 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:50:13.7379047+00:00",
    "EndDate": "2025-04-27T16:50:13.7379047+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:50:13.7379047+00:00",
    "EndDate": "2025-04-27T16:50:13.7379047+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:50:13.7379047+00:00</StartDate>
    <EndDate>2025-04-27T16:50:13.7379047+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:50:13.7379047+00:00</StartDate>
    <EndDate>2025-04-27T16:50:13.7379047+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>