English中文

GoogleGeocoderService

new Cesium.GoogleGeocoderService(options)

通过 Google 提供地理编码。 Provides geocoding through Google.
名称 Name 类型 Type 说明 Description
options object 具有以下属性的对象: Object with the following properties:
名称 Name 类型 Type 说明 Description
key string 用于 Google 地理编码服务的 API 密钥 An API key to use with the Google geocoding service
另见: See:

成员 Members

获取执行地理编码后要显示的信用。通常,这用于记入地理编码器服务。 Gets the credit to display after a geocode is performed. Typically this is used to credit the geocoder service.

方法 Methods

获取与搜索字符串匹配的可能位置的列表。 Get a list of possible locations that match a search string.
名称 Name 类型 Type 说明 Description
query string 要发送到地理编码器服务的查询 The query to be sent to the geocoder service
返回: Returns:
抛出: Throws:
  • RuntimeError :如果服务返回的状态不是 : If the services returns a status other than OK or ZERO_RESULTS
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.