Skip to content

KBE3D / KBCore / Cesium / IonGeocoderService

类: IonGeocoderService

Provides geocoding through Cesium ion.

参数

Object with the following properties:

参数

The scene

参数

The access token to use.

参数

The resource to the Cesium ion API server.

参数

The geocoder the Cesium ion API server should use to fulfill this request.

属性

credit

readonly credit: Credit | undefined

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


geocodeProviderType

geocodeProviderType: IonGeocodeProviderType

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

方法

geocode()

geocode(query: string, type?: GeocodeType): Promise<Result[]>

参数

query

string

The query to be sent to the geocoder service

type?

GeocodeType

The type of geocode to perform.

返回

Promise<Result[]>

构造函数

构造函数

new IonGeocoderService(options: { scene: Scene; accessToken?: string; server?: string | Resource; geocodeProviderType?: IonGeocodeProviderType; }): IonGeocoderService

参数

options
scene

Scene

accessToken?

string

server?

string | Resource

geocodeProviderType?

IonGeocodeProviderType

返回

IonGeocoderService

KBE3D @3.0.0 Copyright © 2024-present KBE3D