---
title: "BaseGeocodingOptions | Client js | Api client"
description: "Documentation for MapTiler Client"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Type Alias BaseGeocodingOptions

BaseGeocodingOptions: [LanguageGeocodingOptions](https://docs.maptiler.com/client-js/api/types/services_geocoding.LanguageGeocodingOptions/) & {  
    adjustSearchParams?: (searchParams: URLSearchParams) \=> void;  
    apiKey?: string;  
}

#### Type Declaration

-   ##### `Optional`adjustSearchParams?: (searchParams: URLSearchParams) \=> void
    
    Callback function to adjust the target URL search params before fetching.
    
-   ##### `Optional`apiKey?: string
    
    Custom MapTiler Cloud API key to use instead of the one in global `config`.
    

-   Defined in [services/geocoding.ts:28](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/geocoding.ts#L28)
