Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Car Counting service

Car counting service precesses data from devices, which flashed by special firmware for car counting and bound to positions with type ‘Stand-alone Car Counter’.

This service can correct raw sensor data and provides real number of cars driving over the sensor.

API details

Every car counting data object has the following format:

{
  "type": "sa_car_counter",
  "sensor_id": "31777",
  "timestamp": 1615211864,
  "counter": 652,
  "errors": null,
  "msg_version": 2,
  "trace_id": "8d386f23-1172-27bb-55d9-5389a5fbf72e"
}

Fields description:

  • "type": "sa_car_counter" - always has the same value

  • "sensor_id" - sensor hardware ID in hex format

  • "timestamp" - Unix-timestamp of event

  • "counter" - number of detected cars

  • "errors" - list of errors or null. Supported error list can be different for different firmwares

  • "msg_version" - data protocol version

  • "trace_id" - message trace ID which can be used for development and debugging

  • No labels