Retrieving Automatic Vehicle Location (AVL) Event Data

If you are not interested in viewing all event data associated with a device, you can use endpoints that provide targeted portions of the data. A common item to view separately is the automatic vehicle location (AVL) data to understand event reports sent by the PEG script to the platform. Like All Events, the AVL endpoint enables you to view the latest AVL data or download AVL data in a time range using request parameters.

To retrieve the latest AVL events, use GET /events/device/id/avl/latest.

To retrieve AVL events within a date/time range, use GET /device/id/avl.

Both endpoints can be indexed by either the deviceId or ESN, which you specify using the required parameter idType.