Create a browser session without downloading the engine.
Dataset, transport, memory, lifecycle and asset settings.
Requires a browser location. Call initialize or route to start.
ReadonlyoptionsSession configuration; relative manifest and asset URLs resolve against the page.
OptionalstartupMeasurements from the most recent successful initialization; cleared on cancellation or failure.
Reject all outstanding operations with CANCELLED, terminate the worker, and discard its memory cache. The Router remains reusable.
Read cumulative tile/cache/heap diagnostics, initializing lazily if necessary. Queues behind active routing. Traces include tile URLs and IDs.
Permanently close this session, terminate its worker, and reject outstanding operations.
Load the runtime and pinned dataset metadata. Concurrent calls share startup.
Initialization timings and dataset/native identity.
RoutingError for asset, dataset, network, cancellation or disposed-session failures.
A failed initialization can be retried on the same Router.
An opaque browser worker-load failure or WASM initialization timeout gets at
most one shared startup retry in a fresh worker, unless retries is zero or
a custom workerFactory is used. Native routing operations are never replayed.
Cancellation also stops this startup recovery.
Calculate a road route with the selected profile, initializing lazily and queuing behind other native operations.
Start/end coordinates and the optional profile and matching settings.
Complete native JSON, dataset identity and per-route measurements.
RoutingError for invalid input, coverage/no-route, transport or lifecycle failures.
A lazy browser routing session. Native operations are serialized in one dedicated Web Worker.