Skip to main content
RadarTripOptions is a configuration class used to set up trip tracking with destination information. It supports single-destination trips and multi-destination trips with multiple legs.

Initializers

initWithExternalId:destinationGeofenceTag:destinationGeofenceExternalId:

Initializes trip options with a destination geofence identified by tag and external ID.
String
required
A stable unique ID for the trip.
String
The tag of the destination geofence.
String
The external ID of the destination geofence.

initWithExternalId:destinationGeofenceTag:destinationGeofenceExternalId:scheduledArrivalAt:

Initializes trip options with a destination geofence and scheduled arrival time.
String
required
A stable unique ID for the trip.
String
The tag of the destination geofence.
String
The external ID of the destination geofence.
Date
The scheduled arrival time for the trip.

initWithExternalId:destinationGeofenceTag:destinationGeofenceExternalId:scheduledArrivalAt:startTracking:

Initializes trip options with full configuration including whether to start tracking automatically.
String
required
A stable unique ID for the trip.
String
The tag of the destination geofence.
String
The external ID of the destination geofence.
Date
The scheduled arrival time for the trip.
Bool
required
Whether to automatically start tracking when the trip is created. Defaults to true when not specified.

Properties

String
A stable unique ID for the trip. This is required and should be unique across all trips.
NSDictionary
An optional set of custom key-value pairs for the trip. Use this to attach any custom data to the trip.
String
For trips with a destination, the tag of the destination geofence. Used together with destinationGeofenceExternalId to identify the destination.
String
For trips with a destination, the external ID of the destination geofence. Used together with destinationGeofenceTag to identify the destination.
NSDate
The scheduled arrival time for the trip. Used to calculate whether the trip is on time or delayed.
RadarRouteMode
For trips with a destination, the travel mode used to calculate ETA and distance.Values:
  • RadarRouteModeFoot - Walking
  • RadarRouteModeBike - Biking
  • RadarRouteModeCar - Driving (default)
  • RadarRouteModeTruck - Truck
  • RadarRouteModeMotorbike - Motorcycle
UInt16
The distance threshold in meters for triggering the approaching state. When the device is within this distance of the destination, the trip status will change to approaching.
BOOL
Whether to automatically start tracking when the trip is created. Defaults to true.
NSArray<RadarTripLeg *>
For multi-destination trips, an optional array of trip legs. Each leg represents a stop along the trip route.See RadarTripLeg for more details.

Class Methods

tripOptionsFromDictionary

Creates a RadarTripOptions instance from a dictionary.
NSDictionary
required
A dictionary containing trip options configuration.
Returns: A RadarTripOptions instance, or nil if the dictionary is invalid.

Instance Methods

dictionaryValue

Converts the trip options instance to a dictionary representation. Returns: A dictionary containing all trip options properties.

Usage Examples

Single Destination Trip

Trip with Scheduled Arrival

Multi-Destination Trip