Appearance
KBE3D / KBCore / Cesium / GeocoderService
类: GeocoderService
Provides geocoding through an external service. This type describes an interface and is not intended to be used.
属性
credit
readonlycredit:Credit|undefined
Gets the credit to display after a geocode is performed. Typically this is used to credit the geocoder service.
方法
getCreditsFromResult()
staticgetCreditsFromResult(geocoderResult:Result):Credit[] |undefined
Parses credits from the geocoder result attributions, if present.
参数
geocoderResult
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?
The type of geocode to perform.
返回
Promise<Result[]>
构造函数
构造函数
new GeocoderService():
GeocoderService
返回
GeocoderService
