SITRouteStep

@interface SITRouteStep : NSObject

A fragment of a route, described by an initial SITPoint (from) and a destination SITPoint (to). It also includes additional information about the fragment.

  • Unique integer identifier of the step.

    Note

    it is unique between the steps of a particular route, not between different routes.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSInteger index;
  • Start point of the step

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) SITPoint *_Nonnull from;
  • to

    End point of the step

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) SITPoint *_Nonnull to;
  • Indicates if this is the first step of the route

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL isFirst;
  • Indicates if this is the last step of the route

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL isLast;
  • Integer identifier of the next step of the route (if any)

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSInteger nextStepIndex;
  • Distance between from and to.

    Declaration

    Objective-C

    - (float)stepDistance;

    Return Value

    distance in meters between from and to.

  • Distance to destination.

    Declaration

    Objective-C

    - (float)distanceToGoal;

    Return Value

    distance between from and the last point of the route.

  • Distance to floor change.

    Declaration

    Objective-C

    - (NSNumber *_Nullable)distanceToFloorChange;

    Return Value

    distance between from and the next floor change of the route.

  • Indicates if the route has more steps

    Declaration

    Objective-C

    - (BOOL)hasNext;

    Return Value

    BOOL value that indicates if the route has more steps (YES) or not (NO)

  • Indicates if the step implies to go to another floot

    Declaration

    Objective-C

    - (BOOL)hasFloorChange;

    Return Value

    BOOL value that indicates if the user need to change floor (YES) or not (NO)