Join us online - 19th of November
Save your spot
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

Options applying to the routing request itself, rather than to the route.

interface RoutingOptions {
    adjustSearchParams?: (searchParams: URLSearchParams) => void;
    apiKey?: string;
    fetchExtras?: RequestInit;
}
Index

Properties

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

apiKey?: string

Custom MapTiler Cloud API key to use instead of the one in global config.

fetchExtras?: RequestInit

Extra options to pass to the underlying fetch call.

Was this helpful?