MVFv3 API Documentation
    Preparing search index...

    Type Alias NodeFeature

    A node is a point geometry geoJSON feature, containing a NodeProperties object.

    In properties, nodes have an id, an array of neighbors the connect to, and the geometry ids of any geometries directly reachable on this node.

    type NodeFeature = {
        properties: {
            id: `n_${string}`;
            neighbors: (
                { extraCost: number; id: `n_${string}` } & { flags: number[] }
            )[];
        } & { geometryIds: `g_${string}`[] };
        type: "Feature";
        geometry: { coordinates: [number, number]; type: "Point" };
    }
    Index

    Properties

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

    Type declaration

    • id: `n_${string}`

      The unique identifier for the node.

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

      The neighbors of the node.

    • geometryIds: `g_${string}`[]
    type: "Feature"
    geometry: { coordinates: [number, number]; type: "Point" }