---
title: "CommonForwardAndReverseGeocodingOptions | 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 CommonForwardAndReverseGeocodingOptions

CommonForwardAndReverseGeocodingOptions: [BaseGeocodingOptions](https://docs.maptiler.com/client-js/api/types/services_geocoding.BaseGeocodingOptions/) & {  
    excludeTypes?: boolean;  
    limit?: number;  
    types?: [GeocodingPlaceType](https://docs.maptiler.com/client-js/api/types/services_geocoding.GeocodingPlaceType/)\[\];  
}

#### Type Declaration

-   ##### `Optional`excludeTypes?: boolean
    
    Set to `true` to use all available feature types except those mentioned in `types`. Default value is `false` if `types` is specified.
    
-   ##### `Optional`limit?: number
    
    Maximum number of results to show. Must be between 1 and 10. For reverse geocoding with multiple `types` this must not be set or must be set to 1. Default is 5 for forward and 1 for reverse geocoding.
    
-   ##### `Optional`types?: [GeocodingPlaceType](https://docs.maptiler.com/client-js/api/types/services_geocoding.GeocodingPlaceType/)\[\]
    
    Features of specified types to query. If not specified, default configuration of API is used (see [https://docs.maptiler.com/cloud/api/geocoding/#PlaceTypeValues](https://docs.maptiler.com/cloud/api/geocoding/#PlaceTypeValues) for the list). In case of reverse geocoding if just a single type is specified, then multiple nearby features of the single type can be returned, otherwise single feature for every specified type (or default types) can be returned.
    

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