MVFv3 API Documentation
    Preparing search index...

    Type Alias NodeNeighbor

    NodeNeighbors are how one node connects to another. The indicate the node linked, and may have an extra cost that should be incurred to traverse to the neighbor, equivalent to the number of meters a person should walk out of their way to avoid crossing that edge.

    Node neighbors are also WithFlags, which indicates which properties the edge has, such as being accessible or outdoors..

    type NodeNeighbor = {
        id: `n_${string}`;
        extraCost: number;
        flags: number[];
    }
    Index

    Properties

    Properties

    id: `n_${string}`

    The unique identifier for the node.

    extraCost: number

    The extra cost to traverse to the node, above the straight-line distance.

    flags: number[]