Traces

Create one or many traces

This will create one or many traces with the provided license plate number.

In the endpoint's URL, you must replace {vendor} by the name given to you by your Dashdoc project manager.

All vehicles specified in the request must exist in Dashdoc with the provided license plate, otherwise the request will return a 400 error.

POSThttps://api.dashdoc.eu/api/v4/telematics/traces/{vendor}/
Body
license_plate*string

License plate number

countrystring

Country code of the license plate

timestring

Timestamp at which the trace was generated. ISO-8601 format.

mileageinteger

Mileage expressed in kilometers

latitudenumber

Latitude of the position of the vehicle

longitudenumber

Longitude of the position of the vehicle

Response
Body
pknumber

Dashdoc's internal id

license_platestring

License plate number

countrystring

Country code of the license plate

timestring

Timestamp at which the trace was generated. ISO-8601 format.

mileageinteger

Mileage expressed in kilometers

latitudenumber

Latitude of the position of the vehicle

longitudenumber

Longitude of the position of the vehicle

Request
const response = await fetch('https://api.dashdoc.eu/api/v4/telematics/traces/{vendor}/', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "license_plate": "AB123CD"
    }),
});
const data = await response.json();
Response
{
  "pk": 17293,
  "license_plate": "AB123CD",
  "country": "FR",
  "time": "2022-02-01T08:00:00Z",
  "mileage": 123,
  "latitude": 42.2,
  "longitude": 2.3522
}

Last updated