valhalla-wasm API
    Preparing search index...

    Interface RouteResult

    Real native route with server diagnostics.

    interface RouteResult {
        dataset: {
            configSha256: string;
            effectiveConfigSha256: string;
            release: string;
            valhallaRevision: string;
        };
        diagnostics: {
            decodedCacheHits: number;
            hostRouteMs: number
            | null;
            loader: ServerLoaderMetrics;
            native: NativeStats;
            queueWaitMs: number | null;
            routeMs: number | null;
        };
        native: NativeRoute;
    }
    Index
    dataset: {
        configSha256: string;
        effectiveConfigSha256: string;
        release: string;
        valhallaRevision: string;
    }

    Immutable graph and source/effective config identity.

    Type Declaration

    • configSha256: string

      SHA-256 of the dataset's runtime configuration.

    • effectiveConfigSha256: string

      SHA-256 of the effective native initialization JSON, including SDK overrides. Matches StartupResult.effectiveConfigSha256.

    • release: string

      Immutable release directory name.

    • valhallaRevision: string

      Upstream Valhalla Git revision for these tiles.

    diagnostics: {
        decodedCacheHits: number;
        hostRouteMs: number | null;
        loader: ServerLoaderMetrics;
        native: NativeStats;
        queueWaitMs: number | null;
        routeMs: number | null;
    }

    Per-route diagnostics.

    Type Declaration

    • decodedCacheHits: number

      Number of native decoded-cache hits.

    • hostRouteMs: number | null

      Total host wall time including queue and startup; null in Cloudflare.

    • loader: ServerLoaderMetrics

      Route-specific loader counters.

    • native: NativeStats

      Native state after routing.

    • queueWaitMs: number | null

      Time waiting for admission; null in Cloudflare.

    • routeMs: number | null

      Native-call wall time including tile waits; null in Cloudflare.

    native: NativeRoute

    Complete native response.