queryType: getModeledVehicleDistanceTraveled*
The getModeledVehicleDistanceTraveled queryType is passed to the API to return expanded vehicle distance traveled (VMT/VKT), expanded by county-level expansion factors.
See Special Case APIs for more information.
Parameters
| Parameter | Description | Type | Defined Value Set | Value Req'd |
|---|---|---|---|---|
| queryType | Must equal getModeledVehicleDistanceTraveled. | STRING | getModeledVehicleDistanceTraveled | Y |
| aggregateAllZones | Whether to aggregate the results over all zones (true) or report the results for each zone provided (false). The default is false. | BOOL | true or false | N |
| aggregationUnits |
Array of requested time series aggregation units to be included in time series breakdowns. This attribute determines which time series breakdowns are generated if
The default is [“hour”, “daytype”, “daytypehour”]. Note: An empty array will return all available time series.
| ARRAY |
“hour”, “daytype”, “daytypehour” | N |
| dateRange |
An object defining the analysis date range. Each object contains:
DateFrom (string) - first date in the analysis date range formatted as "yyyy-mm-dd". DateTo (string) - last date in the analysis date range formatted as "yyyy-mm-dd".Note:
Limited to dates between January 1, 2022, and December 31, 2022. | OBJECT | - | Y |
| daysOfWeek | Array of integers representing each week day. Can send an empty array to return all days. | ARRAY | [1,7] (1 = Sunday, 2 = Monday, etc.) | N |
| generateTimeSeries |
An indicator of whether to generate a time series breakdown (true) or not (false) as a child analysis. Time series will be generated for each time aggregation in aggregationUnits. Note:
The time series breakdown results can be retrieved using the | BOOLEAN | true or false | Y |
| isMetric | True for data to be returned in metric units, false for imperial. | BOOLEAN | true or false | Y |
| timeRange |
An object representing the analysis time range. Each object contains: | OBJECT | - | Y |
| zones |
An array of objects representing the zones for which you want information. Each object contains
| ARRAY |
ZoneType - “Custom”, “State”, “County”, “City”, “TAZ”, “ZIP” or “CTR”. See Zones for details on how to structure the zone inputs for each zone type. | Y |
Response Schema
| Attribute | Description | Data Type | Defined Value Set |
|---|---|---|---|
| DistanceByVehicleGroup |
Array of objects representing the observed and modeled distance for each vehicle group. Each object contains:
VehicleGroup (string) - vehicle group name. Distance (float) - the total observed distance traveled (miles or kilometers) for the zone. ModeledDistance (float) - total expanded observed distance traveled, expanded by county-level expansion factors (RoadType = “All”; VehicleGroup = <VehicleGroup>).Note:
Expansion factor applied to a segment based on the segment geospatially tagged countyId. | ARRAY |
VehicleGroup - Universal : All Geotab vs. market, including both commercial and non-commercial vehicles. Heavy : GVWR 7-8 vs. equivalent commercial market. Medium : GVWR 3-6 vs. equivalent commercial market. |
| ISO_3166_2 |
The ISO 3166:2 code of the zone.
Note:
If | STRING | - |
| ZoneDescription |
Description of the zone when available. The is based on the type of zone: “State” - state name,“County” - county name,“City” - city name,“CTR” - census tract description, “Segment” - road name, if available,“Custom” - custom zone name.
Note:
If | STRING | - |
| ZoneId |
The zone ID for which the data is returned.
Note:
If | STRING | - |
| ZoneType |
The zone type of the zone.
Note:
If | STRING | “Custom”, “Segment”, “State”, “County”, “City”, “TAZ”, “ZIP” or “CTR” |
Time Series Response Schema
This breakdown result is only created if generateTimeSeries value is set to true. The time series breakdown results can be retrieved using the getSavedResults API. See for more details.
| Attribute | Description | Data Type | Defined Value Set |
|---|---|---|---|
| AggregationUnit | The time based unit by which to aggregate data. | STRING |
|
| AggregationValue |
The associated
| ||
| DistanceByVehicleGroup |
Array of objects representing the observed and modeled distance for each vehicle group. Each object contains:
Expansion factor applied to a segment based on the segment geospatially tagged countyId. | ARRAY |
Universal: All Geotab vs. market, including both commercial and non-commercial vehicles. Heavy: GVWR 7-8 vs. equivalent commercial market. Medium: GVWR 3-6 vs. equivalent commercial market. |
| ISO_3166_2 |
The ISO 3166:2 code of the zone. Note:
If | STRING | - |
| ZoneDescription |
Description of the zone when available. The is based on the type of zone:
Note:
If | STRING | - |
| ZoneId |
The zone ID for which the data is returned. Note:
If | STRING | - |
| ZoneType |
The zone type of the zone. Note:
If | STRING | “Custom”, “Segment”, “State”, “County”, “City”, “TAZ”, “ZIP” or “CTR” |
Sample parameters
Sample parameters that should go inside your functionParameters object
{
"aggregateAllZones": false,
"aggregationUnits":[],
"dateRange": {
"DateFrom": "<YYYY-MM-DD>",
"DateTo": "<YYYY-MM-DD>"
},
"daysOfWeek": [],
"generateTimeSeries": false,
"isMetric": true,
"timeRange": {
"TimeFrom": <TimeFrom>,
"TimeTo": <TimeTo>
},
"queryType": "getModeledVehicleDistanceTraveled",
"zones": [
{
"ZoneId": "<ZoneId>",
"ISO_3166_2": "<ISO_3166_2>",
"ZoneType": "<ZoneType>",
}
]
}