Distance

Distance Travelled

Calculate distance travelled in a given period.

curl https://apiplatform.intellicar.in/api/standard/getdistancetravelled \
  --header 'Content-Type: application/json' \
  --data '{"token": "<token>", "vehicleno": "<vehicleno>", "starttime": "<epoch>", "endtime": "<epoch>"}'

Response:

{
  "status": "SUCCESS|FAILURE",
  "data": {
    "startodo": "<start-odometer>",
    "endodo": "<end-odometer>",
    "starttime": "<epoch-utc>",
    "endtime": "<epoch-utc>",
    "lastignon": "<epoch-utc>",
    "lastignoff": "<epoch-utc>",
    "distance": "<distance-travelled>",
    "startLoc": [
      "<start-lat>",
      "<start-lng>"
    ],
    "endLoc": [
      "<end-lat>",
      "<end-lng>"
    ]
  },
  "err": "<err>",
  "msg": "<msg>"
}

Distance Travelled Bulk

Get total distance travelled by multiple vehicles (or all) in a given period. The vehicleno field is optional. If not provided, data for all accessible vehicles is returned.

Response:


Last updated