Place 类
google.maps.places.Place
类
此类实现了 PlaceOptions
。
通过调用 const {Place} = await google.maps.importLibrary("places")
进行访问。
请参阅 Maps JavaScript API 中的库。
构造函数 | |
---|---|
Place |
Place(options) 参数:
|
静态方法 | |
---|---|
searchByText |
searchByText(request) 参数:
基于文本查询的地点搜索。 |
searchNearby |
searchNearby(request) 参数:
搜索附近的地点。 |
属性 | |
---|---|
accessibilityOptions |
类型:
AccessibilityOptions optional 此地点的无障碍选项。如果尚未从服务器调用无障碍选项数据,则为 undefined 。 |
addressComponents |
类型:
Array<AddressComponent> optional 相应地点的地址组成部分集合。如果没有已知的地址数据,则为空对象。如果尚未从服务器调用地址数据,则为 undefined 。 |
adrFormatAddress |
类型:
string optional 以 adr 微格式表示的 Place 的地址。 |
allowsDogs |
类型:
boolean optional |
attributions |
类型: Array< |