通过外部服务提供地理编码。该类型描述了一个接口,并不打算使用。 Provides geocoding through an external service. This type describes an interface and is not intended to be used.
成员 Members
readonly credit : Credit|undefined
获取执行地理编码后要显示的信用。通常,这用于记入地理编码器服务。 Gets the credit to display after a geocode is performed. Typically this is used to credit the geocoder service.
方法 Methods
static Cesium.GeocoderService.getCreditsFromResult(geocoderResult) → Array.<Credit>|undefined
解析来自地理编码器结果属性的积分(如果存在)。 Parses credits from the geocoder result attributions, if present.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
geocoderResult |
GeocoderService.Result | 地理编码器结果 The geocoder result |
返回: Returns:
学分列表(如果出现在结果中),否则未定义 A list of credits if present in the result, otherwise undefined
geocode(query, type) → Promise.<Array.<GeocoderService.Result>>
| 名称 Name | 类型 Type | 默认值 Default | 说明 Description |
|---|---|---|---|
query |
string | 要发送到地理编码器服务的查询 The query to be sent to the geocoder service | |
type |
GeocodeType |
GeocodeType.SEARCH
|
可选 optional 要执行的地理编码的类型。 The type of geocode to perform. |
返回: Returns:
类型定义 Type Definitions
属性: Properties:
| 名称 Name | 类型 Type | Attributes | 说明 Description |
|---|---|---|---|
displayName |
string | 位置的显示名称 The display name for a location | |
destination |
Rectangle | Cartesian3 | 位置的边界框 The bounding box for a location | |
attributions |
Array.<object> |
<可选> <optional> |
