Versions Compared

Key

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

End point:

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

Опис

Wrong authorization params! - погані авторизаційні дані!

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

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

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

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

Параметр

Приклад

auth_token

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

api_type

reports

api_name

fuel

id

11750

dateFrom

1688158800

dateTo

1690750799

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

...

End point:

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

Опис

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

  • fuel -

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

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

Параметр

Приклад

Опис

auth_token

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

FreeTrack token або bearer token

api_type

reports

тип запиту

api_name

fuel

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

id

777

id девайсу

dateFrom

1688158800

дата початку відліку у форматі timestamp UTC +0

dateTo

1690750799

дата кінця відліку у форматі timestamp UTC +0

gropingFuelReportBy

parking

approximateLeft

5

approximateRight

5

pointsForEndRefuel

50

minRefuel

10

minDrain

5

minimumFuelIncrease

0.8

minimumFuelDecrease

1

minSpeed

0

minSpeedDrain

0

minTimeRefuel

50

minTimeDrain

70

durationForCreationGroupOfPoints

150

durationForCreationGroupOfPoints

1

minTimeForCheckingRefuel

600

kalman

false

executeType

ignition

rangeAnalogTrigger

2000

powerExternalLimit

26

powerExternalLimit

60

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

Code Block
languagejson
{
    "result": "ok",
    "response": {
        "durationOfMoving": 192767,
        "consumptionInMotionKmdurationOfStop": 7.352399203,
        "duration": 0,
        "monthEnddistance": 16908371993080,
        "consumptionByNormative": 616.0059999999997,
        "motohoursmaxSpeed": 0136,
        "speedExceeds": 2009,
        "parkingEngineOnaverageSpeed": 056.83540980230642,
        "fuelStart": 26.95,
        "parkingIgnitionOnfuelEnd": 2764214.63,
        "refuel": 220.21999999999997,
        "durationWithOverSpeedLimitdrain": 1810,
        "consumption": 232.54,
        "distanceWithOverSpeedLimitlitersPerHour": 5.880,
        "consumptionKm": 7.55,
        "itemsidlingConsumption": {9.24,
        "consumptionInMotion": 226.38000000000017,
          "1688158800consumptionInMotionKm": {7.35,
           "detailLink": "?companyId=0&groupId=0&id=11750&dateFrom=1688158800&dateTo=1690750799",
            "durationOfMovingdeviceName": 62,"Peugeot Expert *1 CAN",
          "motohours": 0,
          "durationOfStopparkingEngineOn": 863370,
        "parkingIgnitionOn": 27642,
        "durationWithOverSpeedLimit": 181,
        "workStartdistanceWithOverSpeedLimit": 05.88,
           "monthItems": {
            "workEnd1688158800": {
0,                "durationOfMoving": 192767,
       "duration": 0,         "durationOfStop": 2399203,
                "distanceduration": 0.87,
                "distance": 3080,
       "consumptionByNormative": 0.174,         "consumptionByNormative": 616.0059999999997,
                "maxSpeed": 43136,
  
                     "speedExceeds": 02009,
                "averageSpeed": 56.83540980230642,
      "averageSpeed": 14.74074074074074,          "fuelStart": 26.95,
                "fuelStartfuelEnd": 2614.95,
       63,
                "fuelEndrefuel": 26220.1821999999999997,
                "drain": 0,
        "refuel": 0,       "consumption": 232.54,
                "drainlitersPerHour": 0,
                "consumptionKm": 7.55,
        "consumption": 0.77,       "idlingConsumption": 9.24,
                "litersPerHourconsumptionInMotion": 0226.38000000000017,
                "consumptionInMotionKm": 7.35,
      "consumptionKm": 0,         "monthEnd": 1690837199,
                "idlingConsumptionmotohours": 0.77,
                "parkingEngineOn": 0,
                "consumptionInMotionparkingIgnitionOn": 027642,
                "durationWithOverSpeedLimit": 181,
                "consumptionInMotionKmdistanceWithOverSpeedLimit": 0,5.88,
                "items": {
           "dayEnd         "1688158800": 1688245199,{
                        "detailLinkdurationOfMoving": "?companyId=0&groupId=0&id=11750&dateFrom=1688158800&dateTo=1688245199"62,
                        "motohoursdurationOfStop": 086337,
                        "parkingEngineOnworkStart": 0,
                        "parkingIgnitionOnworkEnd": 2800,
                        "durationWithOverSpeedLimitduration": 0,
                        "distanceWithOverSpeedLimitdistance": 0.87,
                        "itemsconsumptionByNormative": {0.174,
                            "1688158827maxSpeed": {43,
                        "speedExceeds": 0,
      "type": "stop",                 "averageSpeed": 14.74074074074074,
              "start": 1688158800,          "fuelStart": 26.95,
                        "endfuelEnd": 1688235436,
       26.18,
                        "durationrefuel": 766360,
   
                            "distancedrain": 0.04,
                                "distanceAccumulative"consumption": 0.0477,
                        "litersPerHour": 0,
        "consumptionByNormative": 0.008,               "consumptionKm": 0,
                "maxSpeed": 6,       "idlingConsumption": 0.77,
                        "speedExceedsconsumptionInMotion": 0,
                        "consumptionInMotionKm": 0,
      "coordinates": {                 "dayEnd": 1688245199,
                  "lat": 49.8258016,            "detailLink": "?companyId=0&groupId=0&id=11750&dateFrom=1688158800&dateTo=1688245199",
                        "lonmotohours": 23.78040830,
                        "parkingEngineOn": 0,
      },                  "parkingIgnitionOn": 280,
             ...           "durationWithOverSpeedLimit": 0,
                }        "distanceWithOverSpeedLimit": 0,
                  ...      "items": {
                   }         "1688158827": {
            ...                     }"type": "stop",
                }             }   "start": 1688158800,
    }     } 
}                       "end": 1688235436,
                                "duration": 76636,
                                "distance": 0.04,
                                "distanceAccumulative": 0.04,
                                "consumptionByNormative": 0.008,
                                "maxSpeed": 6,
                                "speedExceeds": 0,
                                "coordinates": {
                                    "lat": 49.8258016,
                                    "lon": 23.7804083
                                },
                              ...
                            }
                          ...
                        }
                      ...
                    }
                }
            }
        }
    } 
}

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

Помилка

Поясненя

[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]

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