getLastTrip

suspend fun getLastTrip(vin: String, type: TripType): Trip

Fetches the most recent trip of the given type.

Parameters

vin

vehicle identification number

type

trip aggregation type (short-term, long-term, or cyclic)

Throws

on HTTP 404 (vehicle may not support trip recording)