Waze Map Editor JavaScript SDK
    Preparing search index...

    Class TurnClosures

    Methods for dealing with TurnClosures.

    Index

    Methods

    • Adds a new turn closure to the WME data model.

      Parameters

      • args: {
            description: string;
            endDate: number;
            majorTrafficEventId?: string;
            startDate: number;
            turnId: string;
        }
        • description: string

          The description of the turn closure.

        • endDate: number

          The end date of the turn closure as a Unix timestamp (milliseconds).

        • OptionalmajorTrafficEventId?: string

          The id of the major traffic event associated with the turn closure (optional).

        • startDate: number

          The start date of the turn closure as a Unix timestamp (milliseconds).

        • turnId: string

          The id of the turn that this closure applies to.

      Returns TurnClosure

      The newly created turn closure object.

      DataModelNotFoundError if the specified turn or its segments cannot be found in the data model.

      DataModelNotFoundError if the majorTrafficEventId is provided and cannot be found in the data model.

      InvalidStateError if the turn is not allowed.

    • Parameters

      • args: { turnClosureId: string }
        • turnClosureId: string

          An id of the turn closure to find.

      Returns null | TurnClosure

      turn closure with id, or null if not found in the WME data model