spatial-monorepo / wayfinding/src / buildPathNetworkGraph
Function: buildPathNetworkGraph()
buildPathNetworkGraph(
lineFeatures):PathNetworkGraph|null
Defined in: packages/wayfinding/src/path-network.ts:104
Builds a routable graph from a set of authored corridor-centerline LineStrings: every consecutive coordinate pair within a line becomes an edge; endpoints within NODE_MERGE_EPSILON_M of each other (across lines, or within the same line) merge into one graph vertex, so multiple authored segments meeting at a junction connect into a single traversable network. Returns null when there are no usable lines (fewer than 2 coordinates).
Parameters
lineFeatures
object[]
Returns
PathNetworkGraph | null
