main.cesium.IonGeocoderService.kt Maven / Gradle / Ivy
// Automatically generated - do not modify!
@file:Suppress(
"NON_EXTERNAL_DECLARATION_IN_INAPPROPRIATE_FILE",
)
package cesium
/**
* Provides geocoding through Cesium ion.
* @see Online Documentation
*/
@JsName("\$cesium__IonGeocoderService")
external class IonGeocoderService(options: ConstructorOptions) {
/**
* @property [scene] The scene
* @property [accessToken] The access token to use.
* Default value - [Ion.defaultAccessToken]
* @property [server] The resource to the Cesium ion API server.
* Default value - [Ion.defaultServer]
*/
interface ConstructorOptions {
var scene: Scene
var accessToken: String?
var server: Resource?
}
/**
* @param [query] The query to be sent to the geocoder service
* @param [type] The type of geocode to perform.
* Default value - [GeocodeType.SEARCH]
* @see Online Documentation
*/
fun geocode(
query: String,
type: GeocodeType? = definedExternally,
): kotlin.js.Promise>
}