Class TurnByTurnDirectionOptions

Allows customization of text generated for turn by turn directions

Since

2.0.0

Hierarchy

  • TurnByTurnDirectionOptions

Constructors

Methods

getDestinationLeftOrRightDirection getDestinationStraightAheadDirection getDirectionDistanceIncrement getEnterBuildingDescription getEnterPrefix getExitBuildingDescription getExitPrefix getKeepStraightDirectionPrefix getLandmarkListDirectionPrefix getMaxDistanceForLeg getMinDistanceForImportantTurns getMultiDirectionPrefix getNearbyWaypointFieldOfView getNearbyWaypointThreshold getPastLandmarkPrefix getPastNeighborStartAngle getPastNeighborStopAngle getRepeatDirectionSuffix getRoomEntrancePrefix getSlightTurnMaxAngle getSlightTurnSuffix getStartingDirectionsPrefix getStraightPathMaxAngle getTakeElevatorDescription getTakeStairsDescription getThroughRoomPrefix getTowardsLandmarkAngle getTowardsLandmarkPrefix getTowardsOrPastWaypointThreshold getTurnDirectionPrefix getWalkingDescription setDestinationLeftOrRightDirection setDestinationStraightAheadDirection setDirectionDistanceIncrement setEnterBuildingDescription setEnterPrefix setExitBuildingDescription setExitPrefix setKeepStraightDirectionPrefix setLandmarkListDirectionPrefix setMaxDistanceForLeg setMinDistanceForImportantTurns setMultiDirectionPrefix setNearbyWaypointFieldOfView setNearbyWaypointThreshold setPastLandmarkPrefix setPastNeighborStartAngle setPastNeighborStopAngle setRepeatDirectionSuffix setRoomEntrancePrefix setShowDebugInLabels setSlightTurnMaxAngle setSlightTurnSuffix setStartingDirectionsPrefix setStraightPathMaxAngle setTakeElevatorDescription setTakeStairsDescription setThroughRoomPrefix setTowardsLandmarkAngle setTowardsLandmarkPrefix setTowardsOrPastWaypointThreshold setTurnDirectionPrefix setWalkingDescription

Properties

Constructors

Methods

  • Used to describe when the final segment of the journey orients the user so that their destination is to their left or right. This is typically used when the last segment is too short to be separated into its own direction. Defaults to "Your destination is on the".

    Returns string

    the direction

  • Used to describe when the final segment of the journey orients the user so that their destination is straight ahead. Defaults to "Your destionation is straight ahead."

    Returns string

    the direction

  • Distance (in FEET) for indicating length of directions. All directions are rounded to nearest multiples of this value. Defaults to 5 (feet).

    Returns number

    increment value in feet

  • Description used when the user needs to enter a building. Defaults to "Enter the building".

    Returns string

    the description

  • Prefix added to the directions for entering buildings. Defaults to "Enter". Example: [Enter] the building, then ...

    Returns string

    the prefix

  • Description used when the user needs to exit the building. Defaults to "Exit the building".

    Returns string

    the description

  • Prefix added to directions for leaving elevators/stairwells/etc. Defaults to "Exit". Example: [Exit] the elevator, then ...

    Returns string

    the prefix

  • Prefix added when directions should indicate to keep walking straight. Defaults to "Keep". Note: In most cases, straight paths are all combined into a single direction. However, there are certain situations when they are separated, such as when you need to enter/exit a building.

    Returns string

    the prefix

  • Prefix added to list of landmarks in the directions. Defaults to "You will pass".

    Returns string

    the prefix

  • Distance (in FEET) that a segment can be without calling out additional landmarks for navigation, when possible. Defaults to 100 (feet).

    Returns number

    distance in FEET

  • Distance (in FEET) for the minimum length that a wayfinding segment must be in order to get its own direction, rather than being combined with a previous segment's direction. Defaults to 10 (feet).

    Returns number

    distance in feet

  • Prefix added when combining short steps with each other. Defaults to "then". Example: Turn left, [then] turn right ...

    Returns string

    the prefix

  • Angle used to determine if a landmark is within the field of view of the user. Defaults to 25 (degrees).

    Returns number

    field of view angle in DEGREES

  • Max distance (in FEET) for for a nearby landmark to be potentially used in directions. Defaults to 75 (feet).

    Returns number

    distance in FEET

  • Prefix added to directions when indicating to go past a landmark. Defaults to "past".

    Returns string

    the prefix

  • Angle used to determine the min angle a wayside landmark must be to be walked passed in the course of the journey. Defaults to 45 (degrees).

    Returns number

    the angle in DEGREES

  • Angle used to determine the max angle a wayside landmark must be to be walked passed in the course of the journey. Defaults to 135 (degrees).

    Returns number

    the angle in DEGREES

  • Suffix added when combined two directions include the same turn direction. Defaults to "again". For example:

    1. Turn left ...
    2. Turn left [again] ...

    Returns string

    the prefix

  • Prefix added to rooms. Defaults to "the entrance to the".

    Returns string

    the prefix

  • Angle used to determine when a path is a "slight" turn to the left/right instead of a hard turn in one direction or another. Defaults to 60 (degrees).

    Returns number

    angle in degrees

  • Suffix added to directions that fall under "slight" turns. Defaults to "slightly".

    Returns string

    the suffix

  • Prefix added to the first direction. Defaults to "Starting at".

    Returns string

    the prefix

  • Angle used to determine when a two path segments form a straight path or whether there will be a turn left/right. Defaults to 10 (degrees).

    Returns number

    angle in degrees

  • Description used when indicating the user needs to take the elevator to a certain floor. Defaults to "Take the elevator".

    Returns string

    the description

  • Description used when indicating that the user needs to the take the stairs to a certain floor. Defaults to "Take the stairs".

    Returns string

    the description

  • Prefix added to directions when indicating walking through a location. Defaults to "through".

    Returns string

    the prefix

  • Max Angle used to determine whether to describe landmark as something to walk towards, rather than something to walk past. Defaults to 93 (degrees).

    Returns number

    the angle in DEGREES

  • Prefix added to directions when indicating to go towards a landmark. Defaults to "towards".

    Returns string

    the prefix

  • Max Distance (in FEET) for wayside landmarks to be considered as viable. Defaults to 50 (feet).

    Returns number

    distance in FEET

  • Prefix added to indicate to go left/right in the directions. Defaults to "Turn".

    Returns string

    the prefix

  • Used to indicate movement in the directions. Defaults to "walk about".

    Returns string

    the description

  • Parameters

    • destinationLeftOrRightDirection: string

      the new direction

    Returns void

  • Parameters

    • destinationStraightAheadDirection: string

      the new directions

    Returns void

  • Set distance for indicating length of directions

    Parameters

    • directionDistanceIncrement: number

      distance in FEET

    Returns void

  • Parameters

    • enterBuildingDescription: string

      the new description

    Returns void

  • Parameters

    • enterPrefix: string

      the new prefix

    Returns void

  • Parameters

    • exitBuildingDescription: string

      the new description

    Returns void

  • Parameters

    • exitPrefix: string

      the new prefix

    Returns void

  • Parameters

    • keepStraightDirectionPrefix: string

      the new prefix

    Returns void

  • Parameters

    • landmarkListDirectionPrefix: string

      the new prefix

    Returns void

  • Parameters

    • maxDistanceForLeg: number

      distance in FEET

    Returns void

  • Parameters

    • minDistanceForImportantTurns: number

      distance in FEET

    Returns void

  • Parameters

    • multiDirectionPrefix: string

      the new prefix

    Returns void

  • Parameters

    • nearbyWaypointFieldOfView: number

      angle in DEGREES

    Returns void

  • Parameters

    • nearbyWaypointThreshold: number

      distance in FEET

    Returns void

  • Parameters

    • pastLandmarkPrefix: string

      the new prefix

    Returns void

  • Parameters

    • pastNeighborStartAngle: number

      angle in DEGREES

    Returns void

  • Parameters

    • pastNeighborStopAngle: number

      angle in DEGREES

    Returns void

  • Parameters

    • repeatDirectionSuffix: string

      the new prefix

    Returns void

  • Parameters

    • roomEntrancePrefix: string

      the new prefix

    Returns void

  • Parameters

    • showDebugInLabels: boolean

      true to enable debugging

    Returns void

  • Parameters

    • slightTurnMaxAngle: number

      angle in DEGREES

    Returns void

  • Parameters

    • slightTurnSuffix: string

      the new suffix

    Returns void

  • Parameters

    • startingDirectionsPrefix: string

      the new prefix

    Returns void

  • Parameters

    • straightPathMaxAngle: number

      angle in DEGREES

    Returns void

  • Parameters

    • takeElevatorDescription: string

      the new description

    Returns void

  • Parameters

    • takeStairsDescription: string

      the new description

    Returns void

  • Parameters

    • throughRoomPrefix: string

      the new prefix

    Returns void

  • Parameters

    • towardsLandmarkAngle: number

      the new angle in DEGREES

    Returns void

  • Parameters

    • towardsLandmarkPrefix: string

      the new prefix

    Returns void

  • Parameters

    • towardsOrPastWaypointThreshold: number

      distance in FEET

    Returns void

  • Parameters

    • turnDirectionPrefix: string

      the new prefix

    Returns void

  • Parameters

    • walkingDescription: string

      the new description

    Returns void

Properties

destinationLeftOrRightDirection: string = 'Your destination is on the'
destinationStraightAheadDirection: string = 'Your destination is straight ahead.'
directionDistanceIncrement: number = 5.0
enterBuildingDescription: string = ...
enterPrefix: string = 'Enter'
exitBuildingDescription: string = ...
exitPrefix: string = 'Exit'
keepStraightDirectionPrefix: string = 'Keep'
landmarkListDirectionPrefix: string = 'You will pass'
maxDistanceForLeg: number = 100
minDistanceForImportantTurns: number = 10
multiDirectionPrefix: string = 'then'
nearbyWaypointFieldOfView: number = 25.0
nearbyWaypointThreshold: number = 75.0
pastLandmarkPrefix: string = 'past'
pastNeighborStartAngle: number = 45.0
pastNeighborStopAngle: number = 135.0
repeatDirectionSuffix: string = 'again'
roomEntrancePrefix: string = 'the entrance to the'
showDebugInLabels: boolean = false
slightTurnMaxAngle: number = 60
slightTurnSuffix: string = 'slightly'
startingDirectionsPrefix: string = 'Starting at'
straightPathMaxAngle: number = 10
takeElevatorDescription: string = 'Take the elevator'
takeStairsDescription: string = 'Take the stairs'
throughRoomPrefix: string = 'through'
towardsLandmarkAngle: number = 93.0
towardsLandmarkPrefix: string = 'towards'
towardsOrPastWaypointThreshold: number = 50.0
turnDirectionPrefix: string = 'Turn'
walkingDescription: string = 'walk about'

Generated using TypeDoc