Class WaypathSegment

Indicates a section of the overall waypath that the user will take along their way from the start to the end of the journey

Since

2.0.0

Hierarchy

  • WaypathSegment

Constructors

Methods

  • Adds a new waypoint to the end of this segmment

    Parameters

    Returns void

  • Parameters

    Returns string

  • Generates the initial prefix for the direction that tells which direction(s) to turn relative to the previous segment on the path

    Parameters

    Returns string

    the initial prefix that indicates which direction(s) to turn

  • Returns Waypoint

    The last waypoint in this segment

  • Returns number

    The floor of the building that this segment is located on.

  • since 2.0.0

    Returns string

    The id for the MapBuildingFloor that the segment is on.

  • Returns Waypoint[]

    A list of the landmarks that were identified when creating text directions for this segment

  • If a segment is combined, it will have a parent segment that its waypoints were added to

    Returns WaypathSegment

    the parent segment or null if this segment doesn't have one

  • Returns number

    The length of the segment, rounded to the nearest multiple of directionDistanceIncrement, in FEET

  • Returns Waypoint

    The second to last waypoint in this segment

  • Returns number

    The raw length of the segment, in METERS

  • Returns number

    The number of waypoints in this segment. The minimum possible number is two.

  • Returns readonly Waypoint[]

    A list of all the waypoints that make up this segment.

  • Returns boolean

    true if this segment is the first segment in the overall waypath.

  • Returns boolean

    true if this segment is the last segment in the overall waypath.

  • Parameters

    • first: boolean

      true this segment is the first segment in the overall waypath.

    Returns void

  • This will be overridden if you call createStepUsingLastSegment

    Parameters

    • landmarks: Waypoint[]

      new landmarks for this segment

    Returns void

  • Parameters

    • last: boolean

      true if this segment is the last segment in the overall waypath.

    Returns void

  • Parameters

    Returns void

  • Returns {
        landmarks: Waypoint[];
        segmentLength: number;
        waypoints: readonly Waypoint[];
    }

    a JSON object representation of this object

    Since

    2.0

  • Returns string

    a JSON string representation of this object

    Since

    2.0

  • Returns string

    A string representation of this object

Properties

directions: DirectionIndicator[]
subClass?: string
waypoints: Waypoint[] = []

Generated using TypeDoc