Basic Information

Detailed Information

Report Data

The IdleTimesReport Datatype

The following datatype will be JSONified and returned for methods which retrieve values. (NOTE: if param FOBBased = true, three more fields return: Driver, EIN, FOB#)

public class IdleTimesResults
{
publicUInt64AccountId; // The AccountId associated with the Device
publicUInt64DeviceId; // The DeviceId (Serial#) associated with the Device
publicStringDeviceName; // The Device Name matched with the DeviceID
publicDateTimeStartTime; // The time the Device STARTED IDLING
publicUInt64TotalIdleSeconds; // The total SECONDS of IDLE TIME (time determined on parameters: by TIME or IGNITION).
publicDoubleLatitude; // The LATITUDE reading where IDLE event occurred
publicDoubleLongitude; // The LONGITUIDE reading where IDLE event occurred
publicBooleanWasIdleAtStartTime; // Boolean showing if Vehicle was already idling at START TIME of this API Request
publicBooleanWasIdleAtEndTime; // Boolean showing if Vehicle was still idling at END TIME of this API Request
}

The IdleTimesReport Method

The following list provides a reference for all valid /IdleTimesReport HTTP requests.

  • GET v1/IdleTimesReport/{id}?from={from}&to={to}&devices={devices}&UTCoffset={UTCoffset}&IdleTimeInSeconds={IdleTimeInSeconds}&account={account}&fobBased={fobBased}&showZoneNames={showZoneNames}

    Summary: Retrieve a report that is run immediately and returned as soon as possible. These reports are typically limited to a small range or timespan (24 hours or less).

    Returns:

    Parameters:

    • id: The AccountId associated with API caller (FromUri)
    • from: The DateTime to begin report. If no FROM/TO dates passed in, default is last 24 hours. (FromUri)
    • to: The DateTime to end report. If no FROM/TO dates passed in, default is last 24 hours. (FromUri)
    • devices: A comma-separated list of DeviceIds to lookup for a report. If not specified, reports will run for all devices visible to the account. (FromUri)
    • UTCoffset: (Optional) UTC offset to return results in. Default is CENTRAL TIME. (see https://24timezones.com/time-zones for example strings: "UTC-6" for minus 6 or "UTC%2b6" for plus 6) (FromUri)
    • IdleTimeInSeconds: (Optional) If this parameter is left out/null, all idle times will be reported (IDLE EVENT is when IGNITION=On and Velocity = 0). If specified, idle times will only show if they're greater duration than this parameter (in seconds). (FromUri)
    • account: (Optional) If this parameter is included, the method will be run on behalf of the specified child Account (if valid). (FromUri)
    • fobBased: (Optional) If this bool parameter is set to TRUE, the method will return some additional result elements: Driver, Driver EIN and FOB. This option is for FOB drivers only. (FromUri)
    • showZoneNames: (Optional) If this bool parameter is set to TRUE, any idle records will check if within any Geofence/Zone areas and return comma-delimited zone names (or blank, if none). (FromUri)