valhalla-browser API
    Preparing search index...

    Interface RouteResult

    Native response, immutable dataset identity and per-route diagnostics.

    interface RouteResult {
        dataset: {
            configSha256: string;
            release: string;
            valhallaRevision: string;
        };
        diagnostics: {
            decodedCacheHits: number;
            hostRouteMs: number;
            loader: LoaderMetrics;
            native: NativeStats;
            routeMs: number;
        };
        native: NativeRoute;
    }
    Index
    dataset: { configSha256: string; release: string; valhallaRevision: string }

    Identifies the graph and configuration used to calculate this response.

    Type Declaration

    • configSha256: string

      SHA-256 of the dataset's runtime configuration.

    • release: string

      Immutable release directory name.

    • valhallaRevision: string

      Upstream Valhalla Git revision for these tiles.

    diagnostics: {
        decodedCacheHits: number;
        hostRouteMs: number;
        loader: LoaderMetrics;
        native: NativeStats;
        routeMs: number;
    }

    Measurements for this operation; nested native counters remain cumulative.

    Type Declaration

    • decodedCacheHits: number

      Native decoded-cache hits during this route only.

    • hostRouteMs: number

      Main-thread route-call time in ms, including any lazy startup and queue wait.

    • loader: LoaderMetrics

      Loader counter deltas during this route.

    • native: NativeStats

      Cumulative native state after the route.

    • routeMs: number

      Worker-observed native route call time in ms, including Asyncify fetch waits.

    native: NativeRoute

    Complete native response: kilometers, seconds, and polyline6 shapes.