English中文

IonGeocoderService

new Cesium.IonGeocoderService(options)

通过Cesium离子提供地理编码。 Provides geocoding through Cesium ion.
名称 Name 类型 Type 说明 Description
options object 具有以下属性的对象: Object with the following properties:
名称 Name 类型 Type 默认值 Default 说明 Description
scene Scene 现场情况 The scene
accessToken string Ion.defaultAccessToken 可选 optional 要使用的访问令牌。 The access token to use.
server string | Resource Ion.defaultServer 可选 optional Cesium ion API 服务器的资源。 The resource to the Cesium ion API server.
geocodeProviderType IonGeocodeProviderType IonGeocodeProviderType.DEFAULT 可选 optional Cesium ion API 服务器应该使用地理编码器来满足此请求。 The geocoder the Cesium ion API server should use to fulfill this request.
另见: See:

成员 Members

获取执行地理编码后要显示的信用。通常,这用于记入地理编码器服务。 Gets the credit to display after a geocode is performed. Typically this is used to credit the geocoder service.
Cesium ion API 服务器应使用地理编码服务来满足地理编码请求。 The geocoding service that Cesium ion API server should use to fulfill geocding requests.
默认值: Default Value: IonGeocodeProviderType.DEFAULT

方法 Methods

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:
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.