Skip to content

spatial-monorepo


spatial-monorepo / wayfinding/src / BuildInstructionsOptions

Interface: BuildInstructionsOptions

Defined in: packages/wayfinding/src/instructions.ts:32

Properties

minSegmentM?

optional minSegmentM?: number

Defined in: packages/wayfinding/src/instructions.ts:38

Segments shorter than this (metres) are merged into their neighbour before turn classification, to suppress rasterization noise. Default 1.


slightTurnThresholdDeg?

optional slightTurnThresholdDeg?: number

Defined in: packages/wayfinding/src/instructions.ts:34

Bearing-delta magnitude (degrees) below which a vertex is not a turn at all — folded into the running instruction. Default 30.


turnThresholdDeg?

optional turnThresholdDeg?: number

Defined in: packages/wayfinding/src/instructions.ts:36

Bearing-delta magnitude (degrees) above which a turn is a full turn-left/right rather than slight. Default 60.

Released under commercial licensing.