Waze Map Editor JavaScript SDK
    Preparing search index...

    Interface Turn

    interface Turn {
        fromSegmentFwd: boolean;
        fromSegmentId: number;
        hasCustomTTS: boolean;
        hasShieldsPopulated: boolean;
        hasTowardsGuidance: boolean;
        hasTurnGuidance: boolean;
        hasVisualInstruction: boolean;
        id: string;
        instructionOpCode: null | InstructionOpCode;
        isAllowed: boolean;
        isJunctionBoxTurn: boolean;
        isPathTurn: boolean;
        isUTurn: boolean;
        lanes: null | TurnLanes;
        restrictions: TurnRestriction[];
        toSegmentFwd: boolean;
        toSegmentId: number;
    }
    Index

    Properties

    fromSegmentFwd: boolean

    Indicates whether the turn originates from the forward direction of the fromSegmentId segment. true means forward, false means reverse

    fromSegmentId: number

    The ID of the segment from which the turn originates.

    hasCustomTTS: boolean

    Indicates if the turn has custom Text-To-Speech (TTS) instructions.

    hasShieldsPopulated: boolean

    Indicates if the turn has road shields (signs) populated in its guidance data

    hasTowardsGuidance: boolean

    Indicates if the turn has "towards" guidance (e.g., "towards Main Street")

    hasTurnGuidance: boolean

    Indicating whether turn guidance data exists for this turn.

    hasVisualInstruction: boolean

    Indicates if the turn has a visual instruction associated with it

    id: string
    instructionOpCode: null | InstructionOpCode

    An operation code describing the type of turn instruction.

    isAllowed: boolean

    Indicates whether the turn is permitted (legally allowed) in the road network.

    isJunctionBoxTurn: boolean

    Indicates if the turn is within a junction box (a complex intersection).

    isPathTurn: boolean

    Indicates if the turn is part of a calculated route path.

    isUTurn: boolean

    Indicates if the turn is a U-turn.

    lanes: null | TurnLanes

    Data describing the lane configuration for this turn. null if lane data is not available.

    restrictions: TurnRestriction[]

    An array of TurnRestriction objects that apply to this turn.

    toSegmentFwd: boolean

    Indicates whether the turn leads to the forward direction of the toSegmentId segment. true means forward, false means reverse

    toSegmentId: number

    The ID of the segment to which the turn leads