TurnDetailsObject

Objective-C


@interface TurnDetailsObject : NSObject

Swift

class TurnDetailsObject : NSObject

This class encapsulates turn details information.

  • Initializes and returns a newly allocated object using the model data.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithModelData:(nonnull void *)data;
  • Returns the model data.

    Declaration

    Objective-C

    - (nonnull void *)getModelData;
  • Returns the turn info type.

    Declaration

    Objective-C

    - (TurnType)getEvent;

    Swift

    func getEvent() -> TurnType
  • Returns the abstract geometry of the turn.

    Declaration

    Objective-C

    - (nullable AbstractGeometryObject *)getAbstractGeometry;

    Swift

    func getAbstractGeometry() -> AbstractGeometryObject?
  • Returns the abstract geometry image of the turn.

    Declaration

    Objective-C

    - (nullable AbstractGeometryImageObject *)getAbstractGeometryImage;

    Swift

    func getAbstractGeometryImage() -> AbstractGeometryImageObject?
  • Returns the roundabout exit number. -1 when no roundabout exit number.

    Declaration

    Objective-C

    - (int)getRoundaboutExitNumber;

    Swift

    func getRoundaboutExitNumber() -> Int32
  • Returns the image for the turn.

    Declaration

    Objective-C

    - (nullable UIImage *)getTurnImage:(CGSize)size
                      colorActiveInner:(nonnull UIColor *)colorActiveIn
                      colorActiveOuter:(nonnull UIColor *)colorActiveOut
                    colorInactiveInner:(nonnull UIColor *)colorInactiveIn
                    colorInactiveOuter:(nonnull UIColor *)colorInactiveOut;

    Swift

    func getTurnImage(_ size: CGSize, colorActiveInner colorActiveIn: UIColor, colorActiveOuter colorActiveOut: UIColor, colorInactiveInner colorInactiveIn: UIColor, colorInactiveOuter colorInactiveOut: UIColor) -> UIImage?

    Parameters

    size

    The size in pixels.

    colorActiveIn

    The inner active color.

    colorActiveOut

    The outer active color.

    colorInactiveIn

    The inner inactive color.

    colorInactiveOut

    The outer inactive color.

  • Returns the turn image id.

    Declaration

    Objective-C

    - (int)getTurnImageId;

    Swift

    func getTurnImageId() -> Int32
  • Returns the turn simplified 64 id.

    Declaration

    Objective-C

    - (TurnSimplifiedType64)getTurnId64;

    Swift

    func getTurnId64() -> TurnSimplifiedType64