MVFv3 API Documentation
    Preparing search index...

    Type Alias NodeProperties

    NodeProperties include the id and list of neighbors nodes this node connects to.

    It is also WithGeometryIds, and if the array is non-empty, it indicates that this node (one of the) destination nodes for that geometry.

    type NodeProperties = {
        id: `n_${string}`;
        neighbors: ({ extraCost: number; id: `n_${string}` } & { flags: number[] })[];
        geometryIds: `g_${string}`[];
    }
    Index

    Properties

    id: `n_${string}`

    The unique identifier for the node.

    neighbors: ({ extraCost: number; id: `n_${string}` } & { flags: number[] })[]

    The neighbors of the node.

    Type declaration

    • extraCost: number

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

    • id: `n_${string}`

      The unique identifier for the node.

    • flags: number[]
    geometryIds: `g_${string}`[]