Provides geocoding through Cesium ion.
参数名称 | 类型 | 描述信息 | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
Object with the following properties:
|
参考:
成员(属性)
readonly credit : Credit|undefined
Gets the credit to display after a geocode is performed. Typically this is used to credit
the geocoder service.
geocodeProviderType : IonGeocodeProviderType
The geocoding service that Cesium ion API server should use to fulfill geocding requests.
-
默认值:
IonGeocodeProviderType.DEFAULT
方法
geocode(query, type) → Promise.<Array.<GeocoderService.Result>>
参数名称 | 类型 | 默认值 | 描述信息 |
---|---|---|---|
query |
string | The query to be sent to the geocoder service | |
type |
GeocodeType |
GeocodeType.SEARCH
|
可选 The type of geocode to perform. |