new Cesium.GoogleGeocoderService(options)

通过谷歌提供地理编码.
Name Type Description
options object 下列属性的对象 :
Name Type Description
key string An API key to use with the Google geocoding service
See:

Members

readonly credit : Credit|undefined

在完成地理代码后获得显示的信用值 。 通常,这是用来信用的 地理编码器服务.

Methods

geocode(query)Promise.<Array.<GeocoderService.Result>>

获取匹配搜索字符串的可能位置列表 .
Name Type Description
query string 要发送到地理编码器服务的查询
Returns:
Throws:
  • RuntimeError : 如果服务返回除 nT 0 OK NT 1 或 NT 2 ZERO RESULTS NT Q 3 以外的状态
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.