post
/api/v2/expansion-factors/by-zones
Python SDK method:
client.expansion_factors.get_expansion_factors_by_zones()

Get expansion factors

Returns expansion factors for state and county zones. Filter by year, road type, vehicle group, zone type, purchased access, or exact zone selectors. Results are sorted by expansion factor ID before pagination. Expansion factors are statistical multipliers used to scale Geotab-observed vehicle counts to estimated commercial-market vehicle counts.

Altitude Help Center — getExpansionFactors

Input Parameters

NameLocationTypeValuesDescriptionValue Required
pageTokenquerystring-Pagination token from the Link header of a previous response. Omit for the first page.N
pageSizequeryinteger (int64)-Maximum number of items to return per page (1-20000). Defaults to the maximum when omitted.N

Request Body

Expansion factor filters and optional exact zone selectors.

application/json: object

NameTypeInput ShapeValuesDescriptionValue Required
isPurchasedboolean--When true, return only expansion factors for zones purchased by the authenticated database.N
roadTypestring-motorway, trunk, primary, secondary, tertiary, motorway_link, trunk_link, primary_link, secondary_link, tertiary_link, living_street, residential, service, unclassified, road, allOSM road type to include. Use 'all' for aggregate factors or omit to include every road type.N
vehicleGroupstring-heavy, medium, universalVehicle group to include: heavy, medium, or universal. Omit to include every vehicle group.N
yearinteger (int64)--Calendar year to include. Omit to include all available years.N
zoneIdsarray<string>--Encoded state or county zone IDs to match exactly.N
zoneTypestring-State, CountyZone type to include: State or County. Omit to include both.N
zonesarray<object>code: string; iso_3166_2: string; type: string-State or county zone objects to match exactly.N

Examples

County expansion factors request

{
  "roadType": "motorway",
  "vehicleGroup": "universal",
  "year": 2024,
  "zones": [
    {
      "code": "32003",
      "iso_3166_2": "US-NV",
      "type": "County"
    }
  ]
}

Success Responses

200 response: object

OK.

NameTypeDescription
ci95Allnumber (double)95% confidence interval half-width for the expansion factor.
factornumber (double)Rounded expansion factor value.
filterIdstringStable filter identifier composed from year, vehicle group, and road type.
idstringUnique expansion factor identifier composed from filter ID and zone ID.
isEstimatedbooleanWhen true, the expansion factor was estimated rather than directly measured.
isPurchasedbooleanWhen true, the requesting database has purchased this zone.
iso_3166_2stringISO 3166-2 state/province code for this record.
lowernumber (double)Lower bound of the expansion factor confidence interval.
mapenumber (double)Mean absolute percentage error for the expansion factor estimate.
marketSharenumber (double)Market share used when computing the expansion factor.
roadTypestringOSM road classification for which the expansion factor applies.
uppernumber (double)Upper bound of the expansion factor confidence interval.
vehicleGroupstringVehicle group for which the expansion factor applies.
yearinteger (int64)Calendar year for which the expansion factor was computed.
zoneCodestringZone identifier code (e.g. county FIPS, ZIP code) for this record.
zoneIdstringEncoded zone identifier.
zoneNamestringHuman-readable display name of the zone.
zoneTypestringZone type (e.g. 'County', 'ZIP', 'State').

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.
404The requested resource does not exist.
422The request is syntactically valid but semantically cannot be processed.
429The request rate limit has been exceeded.
500An unexpected server error occurred.