# GoogleGeocoderService

#### new Cesium.GoogleGeocoderService(options)
engine/Source/Core/GoogleGeocoderService.js 23

Provides geocoding through Google.

Name | Type | Description
--- | --- | ---
`options` | object | Object with the following properties:
Name | Type | Description
--- | --- | ---
`key` | string | An API key to use with the Google geocoding service

##### See:

- Google Geocoding Policies

### Members

#### readonly credit : Credit|undefined
engine/Source/Core/GoogleGeocoderService.js 48

Gets the credit to display after a geocode is performed. Typically this is used to credit the geocoder service.

### Methods

#### geocode(query) → Promise.<Array.<GeocoderService.Result>>
engine/Source/Core/GoogleGeocoderService.js 64

Get a list of possible locations that match a search string.

Name | Type | Description
--- | --- | ---
`query` | string | The query to be sent to the geocoder service

##### Returns:

##### Throws:

- RuntimeError : If the services returns a status other than `OK` or `ZERO_RESULTS`

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