Skip to main content

RoutingErrorKind

Why a route or a travel-time area could not be found: the request failed (network), it was not valid (invalid), no route links the stops (no-route), the service refused for now (rate-limited), the caller cancelled it (aborted, which callers ignore), or the provider does not offer what was asked, such as a travel mode (unsupported).

This is a type alias exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { RoutingErrorKind } from "@mapcairn/core";

type RoutingErrorKind = "network" | "invalid" | "no-route" | "rate-limited" | "aborted" | "unsupported";

Source: packages/core/src/ports/errors.ts:72