RadarTrip

class RadarTrip(_id: String, externalId: String, metadata: JSONObject?, destinationGeofenceTag: String?, destinationGeofenceExternalId: String?, destinationLocation: RadarCoordinate?, mode: Radar.RadarRouteMode?, etaDistance: Double?, etaDuration: Double?, status: RadarTrip.RadarTripStatus)

Represents a trip.

See also

Constructors

RadarTrip
Link copied to clipboard
fun RadarTrip(_id: String, externalId: String, metadata: JSONObject?, destinationGeofenceTag: String?, destinationGeofenceExternalId: String?, destinationLocation: RadarCoordinate?, mode: Radar.RadarRouteMode?, etaDistance: Double?, etaDuration: Double?, status: RadarTrip.RadarTripStatus)

Types

RadarTripStatus
Link copied to clipboard
enum RadarTripStatus : Enum<RadarTrip.RadarTripStatus>

Functions

toJson
Link copied to clipboard
fun toJson(): JSONObject

Properties

_id
Link copied to clipboard
val _id: String
The Radar ID of the trip.
destinationGeofenceExternalId
Link copied to clipboard
val destinationGeofenceExternalId: String?
For trips with a destination, the external ID of the destination geofence.
destinationGeofenceTag
Link copied to clipboard
val destinationGeofenceTag: String?
For trips with a destination, the tag of the destination geofence.
destinationLocation
Link copied to clipboard
val destinationLocation: RadarCoordinate?
For trips with a destination, the location of the destination geofence.
etaDistance
Link copied to clipboard
val etaDistance: Double?
For trips with a destination, the distance to the destination geofence in meters based on the travel mode for the trip.
etaDuration
Link copied to clipboard
val etaDuration: Double?
For trips with a destination, the ETA to the destination geofence in minutes based on the travel mode for the trip.
externalId
Link copied to clipboard
val externalId: String
The external ID of the trip.
metadata
Link copied to clipboard
val metadata: JSONObject?
The optional set of custom key-value pairs for the trip.
mode
Link copied to clipboard
val mode: Radar.RadarRouteMode?
The travel mode for the trip.
status
Link copied to clipboard
val status: RadarTrip.RadarTripStatus
The status of the trip.