Provides geocoding through Google.
参数名称 | 类型 | 描述信息 | ||||||
---|---|---|---|---|---|---|---|---|
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.
方法
geocode(query) → Promise.<Array.<GeocoderService.Result>>
Get a list of possible locations that match a search string.
参数名称 | 类型 | 描述信息 |
---|---|---|
query |
string | The query to be sent to the geocoder service |