Methods for dealing with TurnClosures.

Hierarchy

  • SdkModule
    • TurnClosures

Methods

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

    Parameters

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

    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