Parking and stops report

This API is used for getting information about vehicle stops and parking events over a specified period. You can get coordinates, duration, and the address of the stop or parking location.

How to get data

Method

GET

Request address

To get the data, use the address: https://<server_address>/api/api.php?

Request parameters

  • cmd=runstops — API command for getting stop and parking report
  • imei— vehicle identifier in the system
  • start— start of the period (Unix timestamp)
  • stop— end of the period (Unix timestamp)
  • node— node number where the command should be executed
 

Example request

https://<server_address>/api/api.php?cmd=runstops&start=1676840400&stop=1676926800&imei=16518&node=1
Response
{
    "code": 0,
    "msg": "OK",
    "stops": [
        {
            "ts": 1676840400,
            "te": 1676873376,
            "dur": 32976,
            "lat": "56.733388",
            "lon": "61.051853",
            "address": {
                "road": "R-351",
                "county": "Beloyarsky Urban District",
                "state": "Sverdlovsk Oblast",
                "region": "Ural Federal District",
                "postcode": "624053",
                "country": "Russia",
                "country_code": "ru"
            }
        },
        {
            "ts": 1676875342,
            "te": 1676880065,
            "dur": 4723,
            "lat": "56.893278",
            "lon": "60.770452",
            "address": {
                "road": "Yekaterinburg Ring Road",
                "county": "Beryozovsky Urban District",
                "state": "Sverdlovsk Oblast",
                "region": "Ural Federal District",
                "postcode": "623703",
                "country": "Russia",
                "country_code": "ru"
            }
        }
    ],
    "parkings": [
        {
            "ts": 1676887881,
            "te": 1676889637,
            "dur": 1756,
            "lat": "56.781017",
            "lon": "58.40189",
            "address": {
                "road": "Access to Zobnina from km 216+740 of Perm – Yekaterinburg highway",
                "county": "Achitsky District",
                "state": "Sverdlovsk Oblast",
                "region": "Ural Federal District",
                "postcode": "623235",
                "country": "Russia",
                "country_code": "ru"
            }
        }
    ]
}
In response to the API request, the following is returned:
  • code — result code (0 = success)
  • msg — server message (e.g., "OK")
  • stops — array of stop data:
  • ts— stop start time (Unix timestamp)
  • te— stop end time (Unix timestamp)
  • dur— duration of the stop in seconds
  • lat— latitude of the stop
  • lon— longitude of the stop
  • address— address details of the stop (street, district/county, state, region, postal code, country, country code)
  • parkings— array of parking data, structured similarly to stops