Class: HotelFilter

HotelFilter

酒店筛选条件


new HotelFilter()

Properties:
Name Type Argument Description
city City <optional>

城市

iataCode string <optional>

IATA 机场编码

  • https://www.nationsonline.org/oneworld/IATA_Codes/airport_code_list.htm
geospatial object <optional>

地理位置信息,WGS-84 经纬度

Properties
Name Type Argument Description
latitude number <optional>

纬度,E.g. 31.22

longitude number <optional>

经度,E.g. 121.46

distance number <optional>

距离,为空时表示同城。km 单位,最大 80,E.g. 20

search string <optional>

搜索,E.g. "外滩"

chains Array.<HotelChain> <optional>

酒店品牌 (deprecated, 替换成 brands)

brands Array.<Brand> <optional>

酒店品牌,通过 _id 属性筛选 E.g. [{_id: "6160646466cc9148978763b4"}]

hotels Array.<Hotel> <optional>

酒店,通过 _id 属性筛选 E.g. [{_id: "5b0c35b5f5ae601a24771727"}]

benefits Array.<HotelBenefit> <optional>

礼遇

highCommission boolean <optional>

仅返回采样命中高佣的酒店。只有 true 会启用筛选;采样结果不保证预订时的实际佣金

minBasePriceRange Array.<number>

最低单晚价格范围,按商户币种。由于价格是实时向供应商查询,该排序会导致查询性能明显下降

  • 0 最低价(含),undefined 表示不限制,E.g. 100
  • 1 最高价(含),undefined 表示不限制,E.g. 1000
Since:
  • 1.0.0