---
title: "CommonForwardAndReverseGeocodingOptions | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> 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/sdk-js/api-reference/types/Externals.BaseGeocodingOptions/) & {  
    excludeTypes?: boolean;  
    limit?: number;  
    types?: [GeocodingPlaceType](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.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/sdk-js/api-reference/types/Externals.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.
