IARoute

Objective-C


@interface IARoute : NSObject

Swift

class IARoute : NSObject

Structure representing a route from user’s location to destination.

  • An array of IARouteLeg objects connecting user’s location to destination.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSArray<IARouteLeg *> *legs;

    Swift

    var legs: [IARouteLeg] { get }
  • Whether route is available

    Declaration

    Objective-C

    @property (nonatomic, readonly) _Bool isSuccessful;

    Swift

    var isSuccessful: Bool { get }
  • Error status for routing

    Declaration

    Objective-C

    @property (nonatomic, readonly) enum ia_route_error error;

    Swift

    var error: ia_route_error { get }