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:
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:
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:
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- WalkingRadarRouteModeBike- BikingRadarRouteModeCar- Driving (default)RadarRouteModeTruck- TruckRadarRouteModeMotorbike- 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
RadarTripOptions instance from a dictionary.
NSDictionary
required
A dictionary containing trip options configuration.
RadarTripOptions instance, or nil if the dictionary is invalid.