ParkingEvent

@JsonClass(generateAdapter = true)
data class ParkingEvent(@Json(name = "location") val location: Location, @Json(name = "method") val method: ParkingMethod, @Json(name = "locationSource") val locationSource: LocationSource, @Json(name = "timestamp") val timestamp: ZonedDateTime)

Represents a parking event. Example:

{
"location": {
"latitudeE7": 412518975,
"longitudeE7": 21683133,
"accuracyMetres": 19
},
"method": "EXITING_VEHICLE_SIGNAL",
"locationSource": "FROM_RAW_LOCATION",
"timestamp": "2022-02-27T14:47:16.731Z"
}

Constructors

Link copied to clipboard
constructor(@Json(name = "location") location: Location, @Json(name = "method") method: ParkingMethod, @Json(name = "locationSource") locationSource: LocationSource, @Json(name = "timestamp") timestamp: ZonedDateTime)

Properties

Link copied to clipboard

Location of the parking event.

Link copied to clipboard

Source of the location data. Example: "FROM_RAW_LOCATION"

Link copied to clipboard

Method of parking event detection. Example: "EXITING_VEHICLE_SIGNAL"

Link copied to clipboard

Timestamp of the parking event. Example: "2022-02-27T14:47:16.731Z"