Packets

The GPS packets are the atomic unit for the GPS system.

Endpoint

https://app.xfleet.io/api/v1/companies/{company}/gpsQueuePackets

GPS Queue Packet

This is a packet as received from the device (mobile phone or GPS box on the car). It is yet to be processed.

Field Type Description Example
vehicle Vehicle Associated vehicle 1Q4L6Vm4ZphDJVkkc2Tgdw
date datetime Date when the packet was generated 2019-04-02T21:09:32Z
lat decimal(8, 6) Latitude 40.75851758632223
lon decimal(9, 6) Longitude -73.98542266275206
speed int Speed in meters / second 16
heading int Heading (orientation in degrees: 0 ... 360) 170
ignition bool Whether or not the engine is on true
event int The ID of the event that just occured (if any) 4
eventData int Additional information about the event 620
distanceFromPrev int Distance from the previous point (in meters) 150
distanceFromStart int Total distance since the engine was turned on 3120
route Route The route that this packet was assigned to {"id": "..."}

GPS Packet

This is a packet after it was processed by the GPS.

Field Type Description Example
vehicle Vehicle Associated vehicle 1Q4L6Vm4ZphDJVkkc2Tgdw
date datetime Date when the packet was generated 2019-04-02T21:09:32Z
lat decimal(8, 6) Latitude 40.75851758632223
lon decimal(9, 6) Longitude -73.98542266275206
speed int Speed in meters / second 16
heading int Heading (orientation in degrees: 0 ... 360) 170
ignition bool Whether or not the engine is on true
event int The ID of the event that just occured (if any) 4
eventData int Additional information about the event 620
distanceFromPrev int Distance from the previous point (in meters) 150
distanceFromStart int Total distance since the engine was turned on 3120
route Route The route that this packet was assigned to {"id": "..."}