valhalla-wasm API
    Preparing search index...

    Interface SearchMemoryOptions

    Native search-label allocation policy, applied when the actor initializes.

    Reservations are label counts per vector, not bytes or search limits. Searches can grow beyond them. These settings override the dataset's A* reservations. They neither change costing nor impose a total-worker memory limit.

    interface SearchMemoryOptions {
        astar?: number;
        bidirectionalAstar?: number;
        clearReservedMemory?: boolean;
    }
    Index
    astar?: number

    Initial single-direction A* label reservation: integer 0–2,000,000, default 16,384. Zero grows storage on demand.

    bidirectionalAstar?: number

    Initial bidirectional A* label reservation in each direction: integer 0–2,000,000, default 16,384. Zero grows storage on demand.

    clearReservedMemory?: boolean

    Ask native cleanup to release used search-label vectors after each route; default false retains reusable reservations. Does not shrink WASM linear memory or clear decoded tiles.