RadarTrip

Objective-C

@interface RadarTrip : NSObject

Swift

class RadarTrip : NSObject

Represents a trip.

  • _id

    The Radar ID of the trip.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nonnull) NSString *_id;

    Swift

    var _id: String { get }
  • The external ID of the trip.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *externalId;

    Swift

    var externalId: String? { get }
  • The optional set of custom key-value pairs for the trip.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSDictionary *metadata;

    Swift

    var metadata: [AnyHashable : Any]? { get }
  • For trips with a destination, the tag of the destination geofence.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *destinationGeofenceTag;

    Swift

    var destinationGeofenceTag: String? { get }
  • For trips with a destination, the external ID of the destination geofence.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *destinationGeofenceExternalId;

    Swift

    var destinationGeofenceExternalId: String? { get }
  • For trips with a destination, the location of the destination geofence.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) RadarCoordinate *destinationLocation;

    Swift

    var destinationLocation: RadarCoordinate? { get }
  • The travel mode for the trip.

    Declaration

    Objective-C

    @property (nonatomic, readonly) RadarRouteMode mode;

    Swift

    var mode: RadarRouteMode { get }
  • For trips with a destination, the distance to the destination geofence in meters based on the travel mode for the trip.

    Declaration

    Objective-C

    @property (nonatomic, readonly) float etaDistance;

    Swift

    var etaDistance: Float { get }
  • For trips with a destination, the ETA to the destination geofence in minutes based on the travel mode for the trip.

    Declaration

    Objective-C

    @property (nonatomic, readonly) float etaDuration;

    Swift

    var etaDuration: Float { get }
  • The status of the trip.

    Declaration

    Objective-C

    @property (nonatomic, readonly) RadarTripStatus status;

    Swift

    var status: RadarTripStatus { get }