# GeocoderService

#### new Cesium.GeocoderService()
engine/Source/Core/GeocoderService.js 19

Provides geocoding through an external service. This type describes an interface and is not intended to be used.

##### See:

- BingMapsGeocoderService
- PeliasGeocoderService
- OpenCageGeocoderService

### Methods

#### geocode(query, type) → Promise.<Array.<GeocoderService.Result>>
engine/Source/Core/GeocoderService.js 28

Name | Type | Default | Description
--- | --- | --- | ---
`query` | string |  | The query to be sent to the geocoder service
`type` | GeocodeType | `GeocodeType.SEARCH` | optional The type of geocode to perform.

##### Returns:

### Type Definitions

#### Cesium.GeocoderService.Result
engine/Source/Core/GeocoderService.js 3

##### Properties:

Name | Type | Description
--- | --- | ---
`displayName` | string | The display name for a location
`destination` | Rectangle | Cartesian3 | The bounding box for a location

Need help? The fastest way to get answers is from the community and team on the Cesium Forum.