post
/api/v2/regional-travel-metrics/modeled-vehicle-distance-traveled
Python SDK method:
client.rtm.modeled_vdt(params).run()

Start modeled vehicle distance traveled job

Creates a job to generate a modeled vehicle distance traveled analysis. Uses Geotab's statistical modelling to extrapolate distance traveled estimates for the broader commercial vehicle population beyond connected vehicles, broken down by vehicle class. Set generateTimeSeries to true to produce time-series breakdowns.

Altitude Help Center — getModeledVehicleDistanceTraveled

Request Body

Modeled VDT analysis parameters.

application/json: object

NameTypeInput ShapeValuesDescriptionValue Required
aggregateAllZonesboolean--When true, results are aggregated across all selected zones into a single row.N
aggregationUnitsarray<AggregationUnit>-hour, dayofweek, week, month, daytype, daytypehour, hourofday, dayTime-series dimensions to generate when generateTimeSeries is true. An empty array generates all available units.N
dateFromstring--First date of the analysis range, formatted as yyyy-mm-dd.Y
dateTostring--Last date of the analysis range (inclusive), formatted as yyyy-mm-dd.Y
daysOfWeekarray<DayOfWeek>-1, 2, 3, 4, 5, 6, 7Days of the week to include (1=Sunday … 7=Saturday). An empty array includes all days.N
generateTimeSeriesboolean--When true, a time-series breakdown child analysis is generated for each aggregation unit.Y
isMetricboolean--When true, distance values are returned in kilometres; when false, in miles. Defaults to the isMetric setting on the authenticated user's profile when omitted.N
timeFromstring--Start of the time-of-day window, formatted as hh:mm:ss. Defaults to 00:00:00 when omitted.N
timeTostring--End of the time-of-day window, formatted as hh:mm:ss.999. Defaults to 23:59:59.999 when omitted.N
zoneIdsarray<string>--Encoded zone ID strings. Provide exactly one of zoneIds or zones (not both).N
zonesarray<object>code: string; iso_3166_2: string; type: string-Zone objects with code, type, and iso_3166_2. Provide exactly one of zones or zoneIds (not both).N

Examples

County modeled VDT request

Translated from the v1 getModeledVehicleDistanceTraveled sample.

{
  "dateFrom": "2023-01-01",
  "dateTo": "2023-01-31",
  "generateTimeSeries": false,
  "isMetric": false,
  "timeFrom": "00:00:00",
  "timeTo": "23:59:59.999",
  "zones": [
    {
      "code": "13121",
      "iso_3166_2": "US-GA",
      "type": "County"
    }
  ]
}

Success Responses

202 response: object

Job accepted and queued for processing. Poll the location header URL to check status.

NameTypeDescription
errorobjectDetails about why the job failed (RFC 7807 format), or null if it succeeded.
idstringUnique job identifier.
linksobjectNavigation URLs for polling and result retrieval.
statusstringCurrent job lifecycle state: PENDING, QUEUED, RUNNING, DONE, FAILED, CANCELED, or NOT_FOUND.

Response Errors

HTTP Status CodeReason
400The request body or parameters are invalid.
401Authentication is required or the provided credentials are invalid.
403The authenticated user lacks permission to perform this operation.
409The operation conflicts with the current state of the resource.
422The request is syntactically valid but semantically cannot be processed.
429The request rate limit has been exceeded.
500An unexpected server error occurred.