Class MapDirectionStep

Model that represents a particular leg or step in a waypath.

Since

1.0.0

Hierarchy

  • MapDirectionStep

Constructors

  • Create a new MapDirection with the specified direction indicator

    Parameters

    • htmlDirections: string

      the text that descripts this segment of the path

    • segment: WaypathSegment

      the WaypathSegment that this step represents

    • Optional directionIndicator: MapDirectionsIcon

      the direction indicated by this step

    Returns MapDirectionStep

Methods

  • Returns string

    A string representation of the length of this step, with the ‘ft’ appended

  • Returns number

    The length represented by this step, in FEET

  • Returns string

    The text that descripts this segment of the path

  • Parameters

    Returns void

  • Parameters

    • distance: string

      A string representation of the length of this step, with the ‘ft’ appended

    Returns void

  • Parameters

    • mInstructions: string

      set the text that descripts this segment of the path

    Returns void

  • Parameters

    • segment: WaypathSegment

      the WaypathSegment that this step represents

    Returns void

  • Returns {
        directionIcon: MapDirectionsIcon;
        distance: string;
        instructions: string;
        segment: {
            landmarks: Waypoint[];
            segmentLength: number;
            waypoints: readonly Waypoint[];
        };
    }

    a JSON object representation of this object

    • directionIcon: MapDirectionsIcon
    • distance: string
    • instructions: string
    • segment: {
          landmarks: Waypoint[];
          segmentLength: number;
          waypoints: readonly Waypoint[];
      }

    Since

    1.1

  • Returns string

    a JSON string representation of this object

    Since

    2.0

  • Returns string

    A string representation of this object

Properties

directionIcon?: MapDirectionsIcon
distance: string
distanceRaw: number
instructions: string
pathMeta?: PathMetadata
stepNumber?: number

Generated using TypeDoc