queryType: getFuelPointAnalytics
The getFuelPointAnalytics queryType returns refuel detection data, allowing users to understand trends in refuelling events and get contextual information regarding fuel events including vehicle class, vehicle vocation, and vehicle industry.
The getFuelPointAnalytics queryType is passed to the API to retrieve refuel detection data for the specified zones and date ranges.
Parameters
These parameters should be passed to the functionParameters object in your API request.
| Parameter | Description | Type | Defined Value Set | Value Required |
|---|---|---|---|---|
| queryType | Must equal "getFuelPointAnalytics". | STRING | "getFuelPointAnalytics" | Y |
| 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
Default returns all aggregation options. Note:
An empty array will return all available time series. | ARRAY | "hour", "dayofweek", "month" | N |
| dateRanges |
An array of objects representing the date ranges of interest. Each object contains:
Note:
Analysis outputs will be aggregated and returned over all date ranges combined. No default. Omitting this parameter will return an error. | ARRAY | - | 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 |
| fuelTypes | An 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. | ARRAY | See Fuel types for a list of fuel types | - |
| 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 |
| NAICS |
An array of integers representing industry IDs. Can pass an empty array to return data for all industries. To get a list of available industries, use the | INTEGER | - | N |
| timeRange |
An object representing the analysis time range. Each object contains:
The default is | OBJECT | - | N |
| vehicleClasses |
An array of vehicle class objects where each object contains | 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 |
| vehicleClassSchemeId | Determines 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 |
| vocations |
An array of integers representing vocation IDs for vocations of interest. Can pass specific IDs or an empty array to return data for all vocations. Default returns all vocations. | ARRAY | See Vocations 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:
| ARRAY | ZoneType: "Custom". See Zones for details on how to structure zone inputs for each zone type. | Y |
Responses
| Code | Type | Description |
|---|---|---|
| 200 | JSON | The requested data. |
| 401 | JSON | Occurs for various unauthorized tasks, such as not providing credentials in your parameters. |
| 500 | JSON | Occurs if an internal server error occurs. Contact Altitude Support for assistance. |
Response Schema
| DailyRefuelCountAvg |
The average daily number of refuels. Note:
The denominator for this calculation is the number of days within the analysis period that have non-zero refuels. | FLOAT | - |
| ISO_3166_2 | The ISO 3166:2 code for the state or province associated with the output zone, where available. | STRING | - |
| RefuelCount | The number of refuel events occurring at the stop location. | INTEGER | - |
| RefuelMetricsByFuelType |
Array of objects representing refuel metrics for each fuel type. Each object contains:
| ARRAY | - |
| RefuelMetricsByIndustry |
Array of objects representing refuel metrics for each NAICS code 1. Each object contains:
| ARRAY | - |
| RefuelMetricsByVehicleClass |
Array of objects representing refuel metrics for each vehicle class. Each object contains:
| ARRAY | - |
| RefuelMetricsByVocation |
Array of objects representing refuel metrics for each vocation. Each object contains:
| ARRAY | - |
| StopCount | The number of stop events occurring at the stop location. | INTEGER | - |
| VehicleCount | The number of unique refuelling vehicles. | INTEGER | - |
| ZoneDescription | The custom zone name. | STRING | - |
| ZoneId | The zone ID for which the data is returned. | STRING | - |
| ZoneType | The zone type of the zone. | STRING | "Custom" |
Sample parameters
{
"queryType": "getFuelPointAnalytics",
"aggregationUnits": ["hour"],
"dateRanges": [{
"DateFrom": "2025-06-01",
"DateTo": "2025-06-30"
}],
"generateTimeSeries": true,
"timeRange": {"TimeFrom": "00:00:00", "TimeTo": "23:59:59.999"},
"zones": [{
"ZoneId": "xx-xxxxxxxxxxxx",
"ISO_3166_2": "US-NV",
"ZoneType": "Custom"
}]
}
Time Series Response Schema
This breakdown result is only created if generateTimeSeries is set to true. The time series breakdown results can be retrieved using the getSavedResults API.
| AggregationUnit | The time-based unit by which to aggregate data. | STRING | "hour", "dayofweek", "month" |
| AggregationValue |
The associated
| STRING | - |
| DailyRefuelCountAvg |
The average daily number of refuels. Note:
The denominator for this calculation is the number of days that have refuels. | FLOAT | - |
| ISO_3166_2 | The ISO 3166:2 code for the state or province associated with the output zone, where available. | STRING | - |
| RefuelCount | The number of refuel events occurring within the input zone. | INTEGER | - |
| RefuelMetricsByFuelType |
Array of objects representing refuel metrics for each fuel type. Each object contains:
| ARRAY | - |
| RefuelMetricsByIndustry |
Array of objects representing refuel metrics for each NAICS code 1. Each object contains:
| ARRAY | - |
| RefuelMetricsByVehicleClass |
Array of objects representing refuel metrics for each vehicle class. Each object contains:
| ARRAY | - |
| RefuelMetricsByVocation |
Array of objects representing refuel metrics for each vocation. Each object contains:
| ARRAY | - |
| StopCount | The number of stop events occurring at the stop location. | INTEGER | - |
| VehicleCount | The number of unique refuelling vehicles. | INTEGER | - |
| ZoneDescription | The custom zone name. | STRING | - |
| ZoneId | The zone ID for which the data is returned. | STRING | - |
| ZoneType | The zone type of the zone. | STRING | "Custom" |