queryType: getStopAnalytics*

The getStopAnalytics queryType is passed to the API to get aggregate stopping and parking information for a given set of parameters.

Note:

See Special Case APIs for more information.

The data insights returned from this queryType can be used to assess stops for various use cases by leveraging the usage of different geographic aggregation modes.

Parameters

These parameters should be passed to the functionParameters object regardless of which method you choose to make an API request.

ParameterDescriptionTypeDefined Value SetValue Required
aggregationMode

Geographic aggregation mode.

0: By road segment

1: By related roads

2: By zone

3: By H3

4. By geohash

5. By S2

INTEGER[0,5]Y
dateRanges

An array of objects representing the date ranges of interest. 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:

Analysis outputs will be aggregated and returned over all date ranges combined.

ARRAY-Y
daysOfWeekArray of integers representing each week day. Can send an empty array to return all days.ARRAY[1,7] (1 = Sunday, 2 = Monday, etc.)N
fuelTypesAn array of strings representing the fuel types you want analyzed. Possible values are "Diesel", "Electric", "Flexible", "Gasoline", "Hybrid", "Other" and "Unknown". Refer to the Fuel types table for a description of each option. Can send an empty array to return all fuel types.ARRAYSee Fuel types for a list of fuel types-
hashHierarchy

Whether to return hierarchy of hashes (true) or each level separately (false). Default value is false.

Example: we have selected H# aggregation (mode 3) and chosen cell levels 5 (minCellLevel) through 7 (maxCellLevel).

If we input false: we will get a result record for each contained H3 cell at level 5 through 7 that has valid results.

If we input true: favors returning the highest level of granularity with the least amount of redundancy while still maintaining coverage of all stops i.e., we will only get a result record for contained H3 cells at level 5 through 7, for which all of their possible (where we have coverage) children cells cannot be returned. So if all of a particular level 6 H3 cells’ children have sufficient coverage, we will return those level 7 children and exclude the overarching level 6 H3 cell. If some of those level 7 children cannot be returned, we will return the level 6 H3 and all of its available children.

Note:

These parameters only apply to aggregation mode 3, 4, and 5.

BOOLEANtrue or falseN
includeGeography

Whether to include geography in the output (true) or not (false).

Note:

For aggregationMode 3, 4, 5 and 6 this is forced to true. The default value is false for all other modes.

BOOLEANTrue or falseN
isMetricTrue for data to be returned in metric units, false for imperial.BOOLEANtrue or falseY
maxCellLevelMaximum cell level for H3, geohash, or S2 aggregation modes. Default value is 10 for H3, 7 for Geohash, and 16 for S2.INTEGER

Absolute Maxs:

  • 15 for H3

  • 12 for Geohash

  • 30 for S2

N
maxPostStopTripDistanceMaximum distance (miles or kilometers) of the trip after the stop to be included in the analysis. Default value is +inf.FLOAT-N
maxPostStopTripDurationMaximum duration (minutes) of the trip after the stop to be included in the analysis. Default value is +inf.FLOAT-N
maxPreStopTripDistanceMaximum distance (miles or kilometers) of the trip before the stop to be included in the analysis. Default value is +inf.FLOAT-N
maxPreStopTripDurationMaximum duration (minutes) of the trip leading up to the stop to be included in the analysis. Default value is +inf.FLOAT-N
maxStopDurationMaximum duration (minutes) of the stop to be included in the analysis. Default value is +inf.FLOAT-N
minCellLevel

Minimum cell level for H3, geohash, or S2 aggregation modes.

Default value is 5 for H3, 5 for Geohash, and 10 for S2.

INTEGER

Absolute Mins:

  • 0 for H3

  • 1 for Geohash

  • 0 for S2

N
minPostStopTripDistanceMinimum distance (miles or kilometers) of the trip after the stop to be included in the analysis. Default value is 0.FLOAT-N
minPostStopTripDurationMinimum duration (minutes) of the trip after the stop to be included in the analysis in minutes. Default value is 0.FLOAT-N
minPreStopTripDistanceMinimum distance (miles or kilometers) of the trip before the stop to be included in the analysis. Default value is 0.FLOAT-N
minPreStopTripDurationMinimum duration (minutes) of the trip leading up to the stop to be included in the analysis. Default value is 0.FLOAT-N
minStopCountMinimum number of stops an output zone must have post analysis to be included in the output dataset.INTEGER-N
minStopDurationMinimum duration (minutes) of the stop to be included in the analysis. Default value is 0.FLOAT-N
NAICSAn array of integers representing industry IDs. Can pass an empty array to return data for all industries. To get list of available industries use the getIndustries API.INTEGER-N
percentilesArray of integers representing the percentiles for which you would like data. Default if not provided is [15,85]ARRAY[0, 99]N
queryTypeMust equal getStopAnalyticsSTRINGgetStopAnalyticsY
relatedRoadTypes

An array of strings representing related road types for which we want data.

Note:

This filter is only applied when aggregationMode is set to 1 or aggregation by related roads.

ARRAYList of OSM road types. Any value from the Road Types table excluding “tertiary”, “residential_link”, and “living_street” which are all included under “residential”N
roadTypes

Array of strings representing the different road types for which you want data. Empty array means all road types.

Note:

This filter is only applied when aggregationMode is set to 0 or aggregation by road segment.

ARRAYList of OSM road types.N
stopDurationBins

Array of integers representing the upper bounds (inclusive) of stop durations (minutes) bins on which to report aggregation metrics.

The lower bound for a bin is the previous stop duration in the array (non-inclusive).

If the user specifies a maxStopDuration parameter value, this will be used as the upper bound for the final bucket, otherwise it goes to +inf. If the user specifies a minStopDuration parameter value, this will be used as the lower bound for the first bucket, otherwise it starts at 0.

For example, the array [10, 30, 60] with no values for the parameter minStopDuration and maxStopDuration would create the following bins: (0, 10], (10, 30], (30, 60], (60, +inf)

ARRAY-N
timeRange

An object representing the time range and whether trips should start in the time range, end in the time range, or both.

  • TimeFrom - a string representing the start time in "hh:mm:ss" format.

  • TimeTo - a string representing the end time in "hh:mm:ss" format.

(Default 00:00:00 to 23:59:59.999)

OBJECT-N
vehicleClasses

An array of vehicle class objects where each object contains VehicleType and WeightClass. To get the list of possible vehicle types and weight classes, refer to Vehicle types and Weight class tables. If a vehicle type does not have any weight classes listed, just pass "*". More information on vehicle classes can be found at AFDC Vehicle Categories. To get all vehicle classes returned, pass an empty array.

ARRAY

See the Vehicle types and Weight class tables.

For Vehicle Type: "Truck", "Passenger", "MPV", "Bus", "Other". More information at AFDC Vehicle Categories.

To get all vehicle types, pass an empty array.

N
vehicleClassSchemeIdDetermines which vehicle classification scheme you will receive data for. See the Vehicle class schemas for a list of options. The default value is 2.INTEGER[1,4]N
vocationsAn array of integers representing vocation IDs for vocations of interest. Can pass specific IDs or an empty array to return data for all vocations.ARRAYSee Vocation descriptions for a list of vocation ids and their mapping information.N
zones

An array of objects representing the zones for which you want information. Each object contains ZoneId, ISO_3166_2, and ZoneType:

  • ZoneId (string)– A custom zone ID or a standard zone ID such as county ID, city ID, etc.

  • ISO_3166_2 (string)– The ISO code of the standard zone. Does not apply to custom zones and can be set to null.

  • ZoneType (string)– the type of zone.

ARRAY
  • ZoneType - “Custom”

  • “State”

  • “County”

  • “City”

  • “TAZ”

  • “ZIP”

  • “CTR”

  • “FSA”.

See Zones for details on how to structure the zone inputs for each zone type.

Y

Responses

CodeTypeDescription
200JSONThe requested data.
401JSONOccurs for various unauthorized tasks e.g. if you didn’t provide credentials in your parameters.
500JSONOccurs if an internal server error occurs. Contact altitudesupport@geotab.com if this occurs.

Response Schema

AttributeDescriptionData TypeDefined Value Set
Geography

A GeoJSON string representing the geography of the zone.

Note:

This attribute is only populated if includeGeography is set to true.

STRING-
IdleDurationAvgThe average idle duration (minutes) before turning off ignition at the stop location.FLOAT-
IdleDurationMedThe median idle duration (minutes) before turning off ignition at the stop location.FLOAT-
IdleDurationPercentiles

Array of objects representing percentile idle duration values for input percentiles. Each object contains:

  • Percentile (integer): the percentile value.

  • Value (float): the calculated percentile idle duration value (minutes).
Note:

If no percentiles are input, the 15th and 85th percentiles are provided by default. Percentiles will only be provided if there are sufficient records to calculate the requested percentiles.

ARRAY-
IdleDurationStdevThe standard deviation of idle duration (minutes) before turning off ignition at the stop location.FLOAT-
ISO_3166_2The ISO 3166:2 code for the state or province associated with the output zone, where available.STRING-
IsOneWay

Whether the road segment is one-way (true) or not (false).

Note:

A value is only returned for aggregationMode 0.

BOOL[True, False, NULL]
PostStopTripDistanceAvgThe average distance (miles or kilometers) of the trip after the stop.FLOAT-
PostStopTripDistanceMedThe median distance (miles or kilometers) of the trip after the stop.FLOAT-
PostStopTripDistancePercentiles

Array of objects representing percentile trip distance values for the trip after the stop, for input percentiles. Each object contains:

  • Percentile (integer): the percentile value.

  • Value (float): the calculated percentile trip distance (miles or kilometers) for the trip after the stop.

Note:

If no percentiles are input, the 15th and 85th percentiles are provided by default. Percentiles will only be provided if there are sufficient records to calculate the requested percentiles.

ARRAY-
PostStopTripDistanceStdevThe standard deviation of distance (miles or kilometers) of the trip after the stop.FLOAT-
PostStopTripDurationAvgThe average duration (in minutes) of the trip after the stop.FLOAT-
PostStopTripDurationMedThe median duration (in minutes) of the trip after the stop.FLOAT-
PostStopTripDurationPercentiles

Array of objects representing percentile trip duration values for the trip after the stop, for input percentiles. Each object contains:

  • Percentile (integer): the percentile value.
  • Value (float): the calculated percentile trip duration (minutes) for the trip after the stop.

Note:

If no percentiles are input, the 15th and 85th percentiles are provided by default. Percentiles will only be provided if there are sufficient records to calculate the requested percentiles.

ARRAY-
PostStopTripDurationStdevThe standard deviation of duration (in minutes) of the trip after the stop.FLOAT-
PreStopTripDistanceAvgThe average distance (in km or mi) of the trip leading to the stop.FLOAT-
PreStopTripDistanceMedThe median distance (in km or mi) of the trip leading to the stop.FLOAT-
PreStopTripDistancePercentiles

Array of objects representing percentile trip distance values for the trip leading up to the stop, for input percentiles. Each object contains:

  • Percentile (integer): the percentile value.

  • Value (float): the calculated percentile trip distance (miles or kilometers) for the trip leading to the stop.

Note:

If no percentiles are input, the 15th and 85th percentiles are provided by default. Percentiles will only be provided if there are sufficient records to calculate the requested percentiles.

ARRAY-
PreStopTripDistanceStdevThe standard deviation of distance (in km or mi) of the trip leading to the stop.FLOAT-
PreStopTripDurationAvgThe average duration (in minutes) of the trip leading to the stop.FLOAT-
PreStopTripDurationMedThe median duration (in minutes) of the trip leading to the stop.FLOAT-
PreStopTripDurationPercentiles

Array of objects representing percentile trip duration values for the trip leading up to the stop, for input percentiles. Each object contains:

  • Percentile (integer): the percentile value.

  • Value (float): the calculated percentile trip duration (minutes) for the trip leading to the stop.

Note:

If no percentiles are input, the 15th and 85th percentiles are provided by default. Percentiles will only be provided if there are sufficient records to calculate the requested percentiles.

ARRAY-
PreStopTripDurationStdevThe standard deviation of duration (in minutes) of the trip leading to the stop.FLOAT-
StopCountThe number of stop events occurring at the stop location.INTEGER-
StopDurationAvgThe average stop duration (in minutes).FLOAT-
StopDurationBins

Array of objects representing count metrics for stop duration bins. Each object contains:

  • Bin (string) — a string representation of the stop duration bin.

  • LowerBound (integer) — the lower bound stop duration (non-inclusive).

  • UpperBound (integer) — the upper bound stop duration (inclusive).

  • StopCount (integer) — number of stops.

  • VehicleCount (integer) — number of vehicles.

ARRAY-
StopDurationMedThe median stop duration (minutes).FLOAT-
StopDurationPercentiles

Array of objects representing percentile stop values for input percentiles. Each object contains:

  • Percentile (integer): the percentile value.

  • Value (float): the calculated percentile stop duration value (minutes).

Note:

If no percentiles are input, the 15th and 85th percentiles are provided by default. Percentiles will only be provided if there are sufficient records to calculate the requested percentiles.

ARRAY-
StopDurationStdevThe standard deviation of stop duration (in minutes).FLOAT-
StopMetricsByDayOfWeek

Array of objects representing stop metrics for a day of week, based on the day of week of arrival at the stop location (local time). Each object contains:

  • DayOfWeek (integer) — the day of the week.

  • StopCount (integer) — number of stops.

  • StopCountAvg (integer) — average number of stops during a single instance of the day of week.

  • StopCountMed (integer) — median number of stops during a single instance of the day of week.

  • VehicleCount (integer) — number of vehicles.

  • VehicleCountAvg (integer) — average number of vehicles during a single instance of the day of week.

  • VehicleCountMed (integer) — median number of vehicles during a single instance of the day of week

  • StopDurationAvg (float) — average stop duration (minutes).

  • StopDurationMed (float) — median stop duration (minutes).

  • IdleDurationAvg (float) — average idle duration (minutes).

  • IdleDurationMed (float) — median idle duration (minutes).

  • PreStopTripDistanceAvg (float) — average distance (miles or kilometers) of the trip leading up to the stop.

  • PreStopTripDistanceMed (float) — median distance (miles or kilometers) of the trip leading up to the stop.

  • PreStopTripDurationAvg (float) — average duration (minutes) of the trip leading up to the stop.

  • PreStopTripDistanceMed (float) — median duration (minutes) of the trip leading up to the stop.

  • PostStopTripDistanceAvg (float) — average distance (miles or kilometers) of the trip after the stop.

  • PostStopTripDistanceMed (float) — median distance (miles or kilometers) of the trip after the stop.

  • PostStopTripDurationAvg (float) — average duration (minutes) of the trip after the stop.

  • PostStopTripDistanceMed (float) — median duration (minutes) of the trip after the stop.

ARRAYDayOfWeek = [1:7], where 1 = Sunday and 7 = Saturday.
StopMetricsByDirection

Array of objects representing stop metrics for each direction of travel on a road segment. Each object contains:

  • CardinalDirection (string) — the direction of the road segment in terms of “N”, “NE”, “E” etc.

  • Direction (integer) — the direction of travel of the road segment relative to the segment definition.

  • StopCount (integer) — number of stops.

  • VehicleCount (integer) — number of vehicles.

  • StopDurationAvg (float) — average stop duration (minutes).

  • StopDurationMed (float) — median stop duration (minutes).

  • IdleDurationAvg (float) — average idle duration (minutes).

  • IdleDurationMed (float) — median idle duration (minutes).

  • PreStopTripDistanceAvg (float) — average distance (miles or kilometers) of the trip leading up to the stop.

  • PreStopTripDistanceMed (float) — median distance (miles or kilometers) of the trip leading up to the stop.

  • PreStopTripDurationAvg (float) — average duration (minutes) of the trip leading up to the stop.

  • PreStopTripDistanceMed (float) — median duration (minutes) of the trip leading up to the stop.

  • PostStopTripDistanceAvg (float) — average distance (miles or kilometers) of the trip after the stop.

  • PostStopTripDistanceMed (float) — median distance (miles or kilometers) of the trip after the stop.

  • PostStopTripDurationAvg (float) — average duration (minutes) of the trip after the stop.

  • PostStopTripDistanceMed (float) — median duration (minutes) of the trip after the stop.

Note:

Values are only returned for aggregationMode 0.

ARRAY

Direction — 1 or -1

CardinalDirection — “N”, “S”, “E”, “W”, “NE”, “NW”, “SE” or “SW”

StopMetricsByFuelType

Array of objects representing stop metrics for each fuel type. Each object contains:

  • FuelType (string) — fuel type name.

  • StopCount (integer) — number of stops.

  • VehicleCount (integer) — number of vehicles.

  • StopDurationAvg (float) — average stop duration (minutes).

  • StopDurationMed (float) — median stop duration (minutes).

  • IdleDurationAvg (float) — average idle duration (minutes).

  • IdleDurationMed (float) — median idle duration (minutes).

  • PreStopTripDistanceAvg (float) — average distance (miles or kilometers) of the trip leading up to the stop.

  • PreStopTripDistanceMed (float) — median distance (miles or kilometers) of the trip leading up to the stop.

  • PreStopTripDurationAvg (float) — average duration (minutes) of the trip leading up to the stop.

  • PreStopTripDistanceMed (float) — median duration (minutes) of the trip leading up to the stop.

  • PostStopTripDistanceAvg (float) — average distance (miles or kilometers) of the trip after the stop.

  • PostStopTripDistanceMed (float) — median distance (miles or kilometers) of the trip after the stop.

  • PostStopTripDurationAvg (float) — average duration (minutes) of the trip after the stop.

  • PostStopTripDistanceMed (float) — median duration (minutes) of the trip after the stop.

ARRAY-
StopMetricsByHour

Array of objects representing stop metrics for an hour, based on the hour of arrival at the stop location (local time). Each object contains:

  • Hour (integer) — the hour.

  • StopCount (integer) — number of stops.

  • StopCountAvg (integer) — average number of stops during a single instance of the hour.

  • StopCountMed (integer) — median number of stops during a single instance of the hour.

  • VehicleCount (integer) — number of vehicles.

  • VehicleCountAvg (integer) — average number of vehicles during a single instance of the hour.

  • VehicleCountMed (integer) — median number of vehicles during a single instance of the hour.

  • StopDurationAvg (float) — average stop duration (minutes).

  • StopDurationMed (float) — median stop duration (minutes).

  • IdleDurationAvg (float) — average idle duration (minutes).

  • IdleDurationMed (float) — median idle duration (minutes).

  • PreStopTripDistanceAvg (float) — average distance (miles or kilometers) of the trip leading up to the stop.

  • PreStopTripDistanceMed (float) — median distance (miles or kilometers) of the trip leading up to the stop.

  • PreStopTripDurationAvg (float) — average duration (minutes) of the trip leading up to the stop.

  • PreStopTripDistanceMed (float) — median duration (minutes) of the trip leading up to the stop.

  • PostStopTripDistanceAvg (float) — average distance (miles or kilometers) of the trip after the stop.

  • PostStopTripDistanceMed (float) — median distance (miles or kilometers) of the trip after the stop.

  • PostStopTripDurationAvg (float) — average duration (minutes) of the trip after the stop.

  • PostStopTripDistanceMed (float) — median duration (minutes) of the trip after the stop.

ARRAYHour - [0:23]
StopMetricsByHourParked

Array of objects representing metrics for vehicles parked during an hour (local time). Each object contains:

  • Hour (integer) — the hour.

  • ParkedCount (integer) — number of distinct parking events.

  • ParkedCountAvg (integer) — average number of distinct parking events during a single instance of the hour.

  • ParkedCountMed (integer) — median number of distinct parking events during a single instance of the hour.

  • VehicleCount (integer) — number of distinct vehicles parked.

  • VehicleCountAvg (integer) — average number of distinct vehicles parked during a single instance of the hour.

  • VehicleCountMed (integer) — median number of distinct vehicles parked during a single instance of the hour.

Note:

A parking event is included in counts if it parked for any portion of the hour.

ARRAYHour - [0:23]
StopMetricsByIndustry

Array of objects representing stop metrics for each NAICS code 1. Each object contains:

  • NAICS_Code_1 (integer) — NAICS code 1.

  • StopCount (integer) — number of stops.

  • VehicleCount (integer) — number of vehicles.

  • StopDurationAvg (float) — average stop duration (minutes).

  • StopDurationMed (float) — median stop duration (minutes).

  • IdleDurationAvg (float) — average idle duration (minutes).

  • IdleDurationMed (float) — median idle duration (minutes).

  • PreStopTripDistanceAvg (float) — average distance (miles or kilometers) of the trip leading up to the stop.

  • PreStopTripDistanceMed (float) — median distance (miles or kilometers) of the trip leading up to the stop.

  • PreStopTripDurationAvg (float) — average duration (minutes) of the trip leading up to the stop.

  • PreStopTripDistanceMed (float) — median duration (minutes) of the trip leading up to the stop.

  • PostStopTripDistanceAvg (float) — average distance (miles or kilometers) of the trip after the stop.

  • PostStopTripDistanceMed (float) — median distance (miles or kilometers) of the trip after the stop.

  • PostStopTripDurationAvg (float) — average duration (minutes) of the trip after the stop.

  • PostStopTripDistanceMed (float) — median duration (minutes) of the trip after the stop.

ARRAY-
StopMetricsByMonth

Array of objects representing stop metrics for a month, based on the month of arrival at the stop location (local time). Each object contains:

  • Month (integer) — the month.

  • StopCount (integer) — number of stops.

  • StopCountAvg (integer) — average number of stops during a single instance of the month.

  • StopCountMed (integer) — median number of stops during a single instance of the month.

  • VehicleCount (integer) — number of vehicles.

  • VehicleCountAvg (integer) — average number of vehicles during a single instance of the month.

  • VehicleCountMed (integer) — median number of vehicles during a single instance of the month.

  • StopDurationAvg (float) — average stop duration (minutes).

  • StopDurationMed (float) — median stop duration (minutes).

  • IdleDurationAvg (float) — average idle duration (minutes).

  • IdleDurationMed (float) — median idle duration (minutes).

  • PreStopTripDistanceAvg (float) — average distance (miles or kilometers) of the trip leading up to the stop.

  • PreStopTripDistanceMed (float) — median distance (miles or kilometers) of the trip leading up to the stop.

  • PreStopTripDurationAvg (float) — average duration (minutes) of the trip leading up to the stop.

  • PreStopTripDistanceMed (float) — median duration (minutes) of the trip leading up to the stop.

  • PostStopTripDistanceAvg (float) — average distance (miles or kilometers) of the trip after the stop.

  • PostStopTripDistanceMed (float) — median distance (miles or kilometers) of the trip after the stop.

  • PostStopTripDurationAvg (float) — average duration (minutes) of the trip after the stop.

  • PostStopTripDistanceMed (float) — median duration (minutes) of the trip after the stop.

ARRAYMonth - [1:12] where 1=January, 2=February, etc
StopMetricsByVehicleClass

Array of objects representing stop metrics for each vehicle class. Each object contains:

  • SchemeId (integer) — vehicle class scheme identifier.

  • CategoryIndex (integer) — vehicle class category identifier.

  • VehicleClassIndex (integer) — vehicle class identifier.

  • VehicleClass (string) — vehicle class name.

  • StopCount (integer) — number of stops.

  • VehicleCount (integer) — number of vehicles.

  • StopDurationAvg (float) — average stop duration (minutes).

  • StopDurationMed (float) — median stop duration (minutes).

  • IdleDurationAvg (float) — average idle duration (minutes).

  • IdleDurationMed (float) — median idle duration (minutes).

  • PreStopTripDistanceAvg (float) — average distance (miles or kilometers) of the trip leading up to the stop.

  • PreStopTripDistanceMed (float) — median distance (miles or kilometers) of the trip leading up to the stop.

  • PreStopTripDurationAvg (float) — average duration (minutes) of the trip leading up to the stop.

  • PreStopTripDistanceMed (float) — median duration (minutes) of the trip leading up to the stop.

  • PostStopTripDistanceAvg (float) — average distance (miles or kilometers) of the trip after the stop.

  • PostStopTripDistanceMed (float) — median distance (miles or kilometers) of the trip after the stop.

  • PostStopTripDurationAvg (float) — average duration (minutes) of the trip after the stop.

  • PostStopTripDistanceMed (float) — median duration (minutes) of the trip after the stop.

ARRAY-
StopMetricsByVocation

Array of objects representing stop metrics for each vocation. Each object contains:

  • VocationId (integer) — unique identifier for the vocation.

  • Vocation (string) — vocation name.

  • StopCount (integer) — number of stops.

  • VehicleCount (integer) — number of vehicles.

  • StopDurationAvg (float) — average stop duration (minutes).

  • StopDurationMed (float) — median stop duration (minutes).

  • IdleDurationAvg (float) — average idle duration (minutes).

  • IdleDurationMed (float) — median idle duration (minutes).

  • PreStopTripDistanceAvg (float) — average distance (miles or kilometers) of the trip leading up to the stop.

  • PreStopTripDistanceMed (float) — median distance (miles or kilometers) of the trip leading up to the stop.

  • PreStopTripDurationAvg (float) — average duration (minutes) of the trip leading up to the stop.

  • PreStopTripDistanceMed (float) — median duration (minutes) of the trip leading up to the stop.

  • PostStopTripDistanceAvg (float) — average distance (miles or kilometers) of the trip after the stop.

  • PostStopTripDistanceMed (float) — median distance (miles or kilometers) of the trip after the stop.

  • PostStopTripDurationAvg (float) — average duration (minutes) of the trip after the stop.

  • PostStopTripDistanceMed (float) — median duration (minutes) of the trip after the stop.

ARRAY-
VehicleCountThe number of unique vehicles contributing to the stop count.INTEGER-
VehicleCountTotalThe total number of unique vehicles in the entire analysis (not just one zone).FLOAT-
VocationFilterUser input vocation filter.ARRAY-
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.

For all other zones, this attribute is null.

STRING-
ZoneId

Unique identifier for the zone. This value is set based on the aggregationMode input parameter value: location.

  • 0 — road segment unique identifier (SegmentId)

  • 1 — related road unique identifier (RelatedRoadId)

  • 2 — unique identifier for the standard or custom zones input (ZoneId)

  • 3 — H3 level-based identifier

  • 4 — Geohash

  • 5 — S2 level-based identifier

STRING-
ZoneSubType

The zone type subclassification value, where applicable. The zone type of the returned zone. Based on aggregationMode input parameter value:

  • 0 — the road type value for the road segment

  • 1 — the related road type for the related road

  • 2 — null

  • 3, 4, 5 — the cell level

  • 6 — null

STRING-
ZoneType

The type of the returned zone. Based on aggregationMode input parameter value:

  • 0 — “Segment”

  • 1 — “RelatedRoad”

  • 2 — “State”, “County”, “City”, “ZIP”, “FSA”, “CTR”, “TAZ”, or “Custom”

  • 3 — “H3”

  • 4 — “Geohash”

  • 5 — “S2”

STRING-

Sample parameters

{
"queryType": "getStopAnalytics",
"aggregationMode": 0,
"dateRanges": [{
	"DateFrom": "2022-06-01",
	"DateTo": "2022-06-30"
}],
"isMetric": false,
"zones": [{
	"ZoneId": "32003",
	"ISO_3166_2": "US-NV",
	"ZoneType": "County"
}]
}