# IonGeocoderService

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

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.
`geocodeProviderType` | IonGeocodeProviderType | `IonGeocodeProviderType.DEFAULT` | optional The geocoder the Cesium ion API server should use to fulfill this request.

##### See:

- Ion

### Members

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

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

#### geocodeProviderType : IonGeocodeProviderType
engine/Source/Core/IonGeocoderService.js 116

The geocoding service that Cesium ion API server should use to fulfill geocding requests.

Default Value: `IonGeocodeProviderType.DEFAULT`

### Methods

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

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.