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

« Previous Version 8 Next »

End point:

https://gps.freetrack.com.ua/api/

Опис

Сиписок доступних методів

  • parking -

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

Параметр

Приклад

Опис

auth_token

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

FreeTrack token або bearer token

api_type

reports

тип запиту

api_name

parking

метод, який викликаємо

start

1688169600

дата початку відліку

end

1690848000

дата кінця відліку

id

777

id девайсу (через кому, якщо потрібно передати кілька)

deviceSpeedLimit

110

powerExternalLimit

17

parkingState

all

стан автомобіля

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

{
    "result": "ok",
    "response": {
        "start": 0,
        "end": 0,
        "distance": 3080,
        "consumptionByNormative": 616.0059999999997,
        "maxSpeed": 136,
        "averageSpeed": 56.83540980230642,
        "speedExceeds": 2009,
        "durationWithOverSpeedLimit": 181,
        "distanceWithOverSpeedLimit": 5.88,
        "motohours": 0,
        "parkingEngineOn": 0,
        "parkingIgnitionOn": 27642,
        "durationOfMoving": 192767,
        "durationOfStop": 2399203,
        "parkingCount": 223,
        "detailLink": "?companyId=0&groupId=0&id=11750&dateFrom=1688158800&dateTo=1690750799",
        "deviceName": "Peugeot Expert *1 CAN",
        "monthItems": {
            "1688158800": {
                "start": 0,
                "end": 0,
                "distance": 3080,
                "consumptionByNormative": 616.0059999999997,
                "maxSpeed": 136,
                "averageSpeed": 56.83540980230642,
                "speedExceeds": 2009,
                "durationWithOverSpeedLimit": 181,
                "distanceWithOverSpeedLimit": 5.88,
                "motohours": 0,
                "parkingEngineOn": 0,
                "parkingIgnitionOn": 27642,
                "durationOfMoving": 192767,
                "durationOfStop": 2399203,
                "parkingCount": 223,
                "monthEnd": 1690837199,
                "items": {
                    "1688158800": {
                        "start": 0,
                        "end": 0,
                        "distance": 0.87,
                        "consumptionByNormative": 0.174,
                        "maxSpeed": 43,
                        "averageSpeed": 14.74074074074074,
                        "speedExceeds": 0,
                        "durationWithOverSpeedLimit": 0,
                        "distanceWithOverSpeedLimit": 0,
                        "motohours": 0,
                        "parkingEngineOn": 0,
                        "parkingIgnitionOn": 280,
                        "durationOfMoving": 62,
                        "durationOfStop": 86337,
                        "parkingCount": 2,
                        "dayEnd": 1688245199,
                        "detailLink": "?companyId=0&groupId=0&id=11750&dateFrom=1688158800&dateTo=1688245199",
                        "items": {
                            "1688158827": {
                                "type": "stop",
                                "start": 1688158800,
                                "end": 1688235436,
                                "duration": 76636,
                                "distance": 0.04,
                                "consumptionByNormative": 0.008,
                                "maxSpeed": 6,
                                "averageSpeed": 5.75,
                                "speedExceeds": 0,
                                "coordinates": {
                                    "lat": 49.8258016,
                                    "lon": 23.7804083
                                },
                                "engineOn": 0,
                                "ignitionOn": 38,
                                "zones": null,
                                "parkingNumber": 1,
                                "stateIndex": 1
                            },
                          ...
                        }
                    }
                }
            }
        }
    }     
}

Типи можливих помилок

Помилка

Поясненя

[id] parameter is missing

не перданий параметр [id]

[dateFrom] parameter is missing

не перданий параметр [dateFrom]

[dateTo] parameter is missing

не перданий параметр [dateTo]

Wrong date! The [dateTo] can't be less than or equal the [dateFrom]

дата початку проміжку не може бути пізніша за дату кінця

  • No labels