queryType: getStopDurationData
This API call can help the user decide what minimum stop threshold to set when chaining trips together into journeys.
The getStaticStopDurationData queryType is passed to the API to get statistics about the average stop duration between all trips.
Parameters
These parameters should be passed to the functionParameters object regardless of which method you choose from here.
| Parameter | Description | Type | Defined Value Set | Value Req'd |
|---|---|---|---|---|
| queryType | Must equal getStaticStopDurationData. | STRING | getStaticStopDurationData | Y |
Responses
| Code | Type | Description |
|---|---|---|
| 200 | JSON | The requested data. |
| 401 | JSON | Occurs for various unauthorized tasks e.g. if you didn’t provide credentials in your parameters. |
| 500 | JSON | Occurs if an internal server error occurs. Contact altitudesupport@geotab.com if this occurs. |
Response Schema
| Attribute | Description | Data Type | Defined Value Set |
|---|---|---|---|
| Percentile | The percentile value. | INTEGER | [0:100] |
| InterTripStopDuration | The inter-trip stop duration for the percentile. | FLOAT | - |
Sample parameters
{
"queryType": "getStopDurationData"
}