Skip to content

spatial-monorepo


spatial-monorepo / wayfinding/src / WayfindingEdge

Interface: WayfindingEdge

Defined in: packages/wayfinding/src/types.ts:146

Properties

accessible

accessible: boolean

Defined in: packages/wayfinding/src/types.ts:163

Whether this edge is wheelchair / accessible-routing friendly. false when the opening has accessibility_rating === 'not_accessible', or when the edge connects via stairs or escalators. Defaults to true for all other edges.


distance

distance: number

Defined in: packages/wayfinding/src/types.ts:153

Approximate Euclidean distance in metres between node centroids


doorMidpoint?

optional doorMidpoint?: Position2D

Defined in: packages/wayfinding/src/types.ts:174

True geometric midpoint (by length along the LineString, not just the arithmetic mean of vertices) of the Opening this edge was derived from. Present only for kind === 'same-floor' edges built from an Opening. pathToLegs (directions.ts) inserts this point as an explicit route vertex between the two unit centroids so a hop reads centroid → door midpoint → centroid instead of a straight centroid-to-centroid line that can cross the shared wall at an arbitrary point (issue #469).


fromId

fromId: string

Defined in: packages/wayfinding/src/types.ts:148


id

id: string

Defined in: packages/wayfinding/src/types.ts:147


kind

kind: EdgeKind

Defined in: packages/wayfinding/src/types.ts:154


toId

toId: string

Defined in: packages/wayfinding/src/types.ts:149


verticalCategory?

optional verticalCategory?: VerticalCategory

Defined in: packages/wayfinding/src/types.ts:156

vertical category when kind === 'cross-floor'


weight

weight: number

Defined in: packages/wayfinding/src/types.ts:151

Estimated travel time in seconds

Released under commercial licensing.