# IonGeocoderService

#### new Cesium.IonGeocoderService(options)
engine/Source/Core/IonGeocoderService.js 21

Provides geocoding through Cesium ion.

Name | Type | Description
--- | --- | ---
`options` | object | Object with the following properties:
Name | Type | Default | Description
--- | --- | --- | ---
`scene` | Scene |  | The scene
`accessToken` | string | `Ion.defaultAccessToken` | optional The access token to use.
`server` | string | Resource | `Ion.defaultServer` | optional The resource to the Cesium ion API server.

##### See:

- Ion

### Members

#### readonly credit : Credit|undefined
engine/Source/Core/IonGeocoderService.js 62

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

### Methods

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

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:

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