---
# System prepended metadata

title: Tripo Json Specification
tags: [modern system]

---

###### tags: `modern system`

# Tripo Json Specification

## Change Log
| Version No. | Date | Description | Author |
| :---------: | :--: | ----------- | :----: |
| 1.1.0 | 2020-04-01 | Add vehicle_speeding | Greg |
| 1.0.0 | 2020-01-10 | The first release | Ruby |

## Quick Guide
[TOC]

### trip_end
:::info
derived from a "sleep_start" event
**sent to Vehicol, Drivo, and Sensol**
trip is ended by a "sleep_start" event
pass "trip_end" to those services to pack the curVehicleStatus into daily, weekly, and monthly record.
:::
```jsonld
{
  "eventType": "trip_end",
  "IMEI": string,
  "tripId": $tripId,
  "dateTime": number
}
```

### sleep_end
:::info
derived from a "engine_start" event
**sent to Devicio**
sleep is ended by a "engine_start" event
pass "sleep_end" to Devicio to pack the curVehicleStatus into daily, weekly, and monthly record.
:::
```jsonld
{
  "eventType": "sleep_end",
  "IMEI": string,
  "sleepMin": int,
  "dateTime": int,
  "someInexKey": string // 尚未決定, 保留的欄位, 以防之後需要快速查找trip_histories
}
```

### vehicle_speeding
:::info
TBD
***sent to Alerto***
pass "vehicle_speeding" to Alerto to announce speeding event
:::
```jsonld
{
 "eventType": "vehicle_speeding",
 "dateTime": int,
 "IMEI": string,
 "longitude": int,
 "latitude": int,
 "accuracy": int,
 "heading": int,
 "gpsSpeed": int,
 "limit": int,
 "curSpeed": int
}
```