For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Interface RoutingOptions
interface RoutingOptions {
adjustSearchParams?: (searchParams: URLSearchParams) => void;
apiKey?: string;
fetchExtras?: RequestInit;
}
adjustSearchParams?: (searchParams: URLSearchParams) => void;
apiKey?: string;
fetchExtras?: RequestInit;
}
Index
Properties
Properties
OptionaladjustSearchParams
adjustSearchParams?: (searchParams: URLSearchParams) => void
Callback function to adjust the target URL search params before fetching.
Type Declaration
- (searchParams: URLSearchParams): void
Parameters
- searchParams: URLSearchParams
URLSearchParams object that can be modified in place.
Returns void
- searchParams: URLSearchParams
OptionalapiKey
apiKey?: string
Custom MapTiler Cloud API key to use instead of the one in global config.
OptionalfetchExtras
fetchExtras?: RequestInit
Extra options to pass to the underlying fetch call.
Options applying to the routing request itself, rather than to the route.