Place

Place

google.maps.places.Place

此类实现了 PlaceOptions

通过调用 const {Place} = await google.maps.importLibrary("places") 进行访问。
请参阅 Maps JavaScript API 中的库

Place
Place(options)
参数: 
searchByText
searchByText(request)
参数: 
返回值:  Promise<{places:Array<Place>}>
基于文本查询的地点搜索。
searchNearby
searchNearby(request)
参数: 
返回值:  Promise<{places:Array<Place>}>
搜索附近的地点。
accessibilityOptions
类型:  AccessibilityOptions optional
此地点的无障碍选项。如果尚未从服务器调用无障碍选项数据,则为 undefined
addressComponents
类型:  Array<AddressComponent> optional
相应地点的地址组成部分集合。如果没有已知的地址数据,则为空对象。如果尚未从服务器调用地址数据,则为 undefined
adrFormatAddress
类型:  string optional
adr 微格式表示的 Place 的地址。
allowsDogs
类型:  boolean optional
attributions
类型:  Array<