Skip to content

KBE3D / KBCore / Cesium / GeocoderService

类: GeocoderService

Provides geocoding through an external service. This type describes an interface and is not intended to be used.

属性

credit

readonly credit: Credit | undefined

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

方法

getCreditsFromResult()

static getCreditsFromResult(geocoderResult: Result): Credit[] | undefined

Parses credits from the geocoder result attributions, if present.

参数

geocoderResult

Result

The geocoder result

返回

Credit[] | undefined

A list of credits if present in the result, otherwise undefined


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 GeocoderService(): GeocoderService

返回

GeocoderService

KBE3D @3.0.0 Copyright © 2024-present KBE3D