MQRouteDestination

@protocol MQRouteDestination <NSObject>

An protocol for an object passed to the MQRouteService that describes the destination with a required location coordinate and optional MQID

  • The location of the destination. Used as a backup in case the MQID is empty or cannot be used.

    Declaration

    Objective-C

    @required
    @property (readonly, strong, nonatomic, nonnull) CLLocation *location;

    Swift

    var location: CLLocation { get }
  • MQID of the destination. Provides the best-case routable destination.

    Declaration

    Objective-C

    @required
    @property (readonly, strong, nonatomic, nullable) NSString *mqid;

    Swift

    var mqid: String? { get }
  • Custom destination arrival radius. Useful for if you arriving to a city center, a stadium, or other large area. If used, some of our arrival logic may change.

    If the value is <=0, we will use the default arrival radius. The SDK may evaluate the radius against certain rules and elect to use it selectively.

    Declaration

    Objective-C

    @optional
    @property (readonly, nonatomic) CLLocationDistance arrivalAcceptanceRadius;

    Swift

    optional var arrivalAcceptanceRadius: CLLocationDistance { get }