Waze Map Editor JavaScript SDK
    Preparing search index...

    Interface SegmentRestriction

    Represents restrictions applied to a segment.

    interface SegmentRestriction {
        defaultType: null | RESTRICTION_TYPE;
        description: null | string;
        direction: null | RestrictionSegmentDirection;
        disposition: null | RestrictionSegmentDisposition;
        driveProfiles: DriveProfiles;
        editable: boolean;
        isExpired: boolean;
        laneType: null | RestrictionSegmentLaneType;
        timeFrames: TimeFrame[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    defaultType: null | RESTRICTION_TYPE

    Default restriction type.

    description: null | string

    Free text description of the restriction.

    direction: null | RestrictionSegmentDirection

    Traffic direction restricted on the segment.

    disposition: null | RestrictionSegmentDisposition

    Lane disposition the restriction applies to.

    driveProfiles: DriveProfiles

    Drive profiles overriding the default restriction per restriction type.

    editable: boolean

    Whether the restriction is editable by the current user.

    isExpired: boolean

    Whether the restriction has expired based on its time frames.

    Specialized lane type (e.g., HOV, bus).

    timeFrames: TimeFrame[]

    Array of time frames indicating when the restriction applies.