LocationContext.GeoTypeRestrictions

class LocationContext.GeoTypeRestrictions


生成搜索建议时要应用的地理位置类型偏好设置。系统可支持以下类型:

  • 餐饮地理位置类型 -“餐厅”“咖啡馆”“酒吧”
  • 休闲地理位置类型 - 'park'、'zoo'、'museum'、'attraction'
  • 服务地理位置类型 - 'atm'、'bank'、'hair_salon'、'real_estate_agency'
  • 交通地理位置类型 - 'bicycle_sharing_location'、'car_rental_agency'
  • 购物地理位置类型 - 'shopping_center'、'grocery_store'
  • 住宿地理位置类型 -“酒店”

摘要

公共构造函数

公共函数

LocationContext.GeoTypeRestrictions!

设置地理位置类型。

公共构造函数

GeoTypeRestrictions

GeoTypeRestrictions(geoTypes: Array<String!>!)

公共函数

setGeoTypes

@CanIgnoreReturnValue
fun setGeoTypes(geoTypes: (Mutable)List<String!>!): LocationContext.GeoTypeRestrictions!

设置地理位置类型。

参数
geoTypes: (Mutable)List<String!>!

地理位置类型。

返回
LocationContext.GeoTypeRestrictions!

地理位置类型限制。