GET apioauth/v4/service/{serviceId}/distanceduration
Get the distances and durations for a service and its inputs
Request Information
URI Parameters
| Name | Description | Type | Additional information | 
|---|---|---|---|
| serviceId | 
                         The service id being queried  | 
                    unsigned integer | 
                                 Required  | 
                
Body Parameters
None.
Response Information
Resource Description
OAuthServiceDistanceDurationResponse
OAuthServiceDistanceDurationResponse| Name | Description | Type | Additional information | 
|---|---|---|---|
| ServiceId | 
                         The id of a service  | 
                    unsigned integer | 
                             None.  | 
                
| ServiceDistance | 
                         The service distance in metres  | 
                    integer | 
                             None.  | 
                
| ServiceDuration | 
                         The service duration in seconds  | 
                    integer | 
                             None.  | 
                
| Input0Distance | 
                         The input 0 distance in metres  | 
                    integer | 
                             None.  | 
                
| Input0Duration | 
                         The input 0 duration in seconds  | 
                    integer | 
                             None.  | 
                
| Input1Distance | 
                         The input 1 distance in metres  | 
                    integer | 
                             None.  | 
                
| Input1Duration | 
                         The input 1 duration in seconds  | 
                    integer | 
                             None.  | 
                
| Input2Distance | 
                         The input 2 distance in metres  | 
                    integer | 
                             None.  | 
                
| Input2Duration | 
                         The input 2 duration in seconds  | 
                    integer | 
                             None.  | 
                
| Input3Distance | 
                         The input 3 distance in metres  | 
                    integer | 
                             None.  | 
                
| Input3Duration | 
                         The input 3 duration in seconds  | 
                    integer | 
                             None.  | 
                
| Input0Description | 
                         The name of input 0  | 
                    string | 
                             None.  | 
                
| Input1Description | 
                         The name of input 1  | 
                    string | 
                             None.  | 
                
| Input2Description | 
                         The name of input 2  | 
                    string | 
                             None.  | 
                
| Input3Description | 
                         The name of input 3  | 
                    string | 
                             None.  | 
                
| LastUpdated | 
                         When the values were last updated when a journey was finished  | 
                    date | 
                             None.  | 
                
Response Formats
application/json, text/json
            Sample:
        
{
  "ServiceId": 1,
  "ServiceDistance": 2,
  "ServiceDuration": 3,
  "Input0Distance": 4,
  "Input0Duration": 5,
  "Input1Distance": 6,
  "Input1Duration": 7,
  "Input2Distance": 8,
  "Input2Duration": 9,
  "Input3Distance": 10,
  "Input3Duration": 11,
  "Input0Description": "sample string 12",
  "Input1Description": "sample string 13",
  "Input2Description": "sample string 14",
  "Input3Description": "sample string 15",
  "LastUpdated": "2025-11-04T14:30:34.284062+00:00"
}
        application/xml, text/xml
            Sample:
<OAuthServiceDistanceDurationResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ServiceId>1</ServiceId> <ServiceDistance>2</ServiceDistance> <ServiceDuration>3</ServiceDuration> <Input0Distance>4</Input0Distance> <Input0Duration>5</Input0Duration> <Input1Distance>6</Input1Distance> <Input1Duration>7</Input1Duration> <Input2Distance>8</Input2Distance> <Input2Duration>9</Input2Duration> <Input3Distance>10</Input3Distance> <Input3Duration>11</Input3Duration> <Input0Description>sample string 12</Input0Description> <Input1Description>sample string 13</Input1Description> <Input2Description>sample string 14</Input2Description> <Input3Description>sample string 15</Input3Description> <LastUpdated>2025-11-04T14:30:34.284062+00:00</LastUpdated> </OAuthServiceDistanceDurationResponse>