Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

End point:

...

  • speed-limits - отримання пройденої дистанції девайсом

Приклади використання

*червоні параметри є обов'язковими

Параметр

Приклад

auth_token

ваш токен авторизації

api_type

reports

api_name

speed-limits

id

11750

dateFrom

1690837200

dateTo

1691614799

Приклади відповіді

Code Block
languagejson
{
    "result": "ok",
    "response": {
        "devices": {
            "11750": {
                "deviceName": "Peugeot Expert *1 CAN",
                "items": [
                    {
                        "start": 1690961625,
                        "end": 1690961842,
                        "duration": 217,
                        "maxSpeed": 115,
                        "coordinates": "<a title='current coordinates' \n    href='https://www.google.com/maps?q=50.03161+24.3196433' \n    class='address_link' target='_blank'>50.03161 24.3196433</a>",
                        "coordinatesString": "50.03161 24.3196433",
                        "distance": 6.1,
                        "maxLegalSpeed": null,
                        "sensors": []
                    },
                    {
                        "start": 1690962663,
                        "end": 1690962981,
                        "duration": 318,
                        "maxSpeed": 130,
                        "coordinates": "<a title='current coordinates' \n    href='https://www.google.com/maps?q=50.17713+24.46241' \n    class='address_link' target='_blank'>50.17713 24.46241</a>",
                        "coordinatesString": "50.17713 24.46241",
                        "distance": 9.27,
                        "maxLegalSpeed": null,
                        "sensors": []
                    },
                 ]   
            }
        }
    }
}

...