Skip to content

Location

This event allow to track the position of the vehicle. The frequency at which it is triggered is variable (depending on the IoT model), from 10 to 15 minutes when the vehicle is idle and every minutes when the vehicle is moving.

Body parameters

  • event: location
  • vehicle (integer): The identifier of the vehicle.
  • data: (json object).
    • status (string): valid when the location is determined, invalid otherwise.
    • latitude (number, optional): The latitude of the vehicle, -90 to 90.
    • longitude (number, optional): The longitude of the vehicle, -180 to 180.
    • time (integer, optional): The time (milliseconds since epoch) of this location.

Body example

{
    "event": "location",
    "vehicle": 156,
    "data": {
        "status": "invalid"
    }
}
{
    "event": "status",
    "vehicle": 156,
    "data": {
        "status": "valid",
        "latitude:": 48.542733,
        "longitude": 7.787755,
        "time": 1607082857353
    }
}