Class: Hotel

Hotel

Hotel

  • When used as a request parameter, only _id, code, or chain.code is required

new Hotel()

Properties:
Name Type Argument Description
_id string

Identifier

code string

Code

name string

Name

nameEn string

English name

chain HotelChain

Hotel chain (deprecated, use group, brand)

city City

City

group Group

Group

brand Brand

Brand

images Array.<ImageUrl> <optional>

Images

videos Array.<Video> <optional>

Videos

description string <optional>

Description

address string <optional>

Address

telephone string <optional>

Phone number

checkInTime string <optional>

Check-in time description

checkOutTime string <optional>

Check-out time description

location object <optional>

Location

Properties
Name Type Description
latitude number

Latitude

longitude number

Longitude

system string
  • BD-09 Baidu Maps. Encrypted and offset based on GCJ-02.
  • GCJ-02 Amap. An encrypted coordinate system formulated by China's State Bureau of Surveying and Mapping.
  • WGS-84 Google Maps. A globally通用 coordinate system, default for GPS devices.
acceptedCreditCardTypes Array.<string>

Accepted credit card types. See CreditCard.type

benefits Array.<HotelBenefit> <optional>

Benefits

promotions Array.<Promotion> <optional>

Promotions

highCommission boolean

Whether the high commission sample matches the requested stay. This does not guarantee the commission at booking time.

minBasePrice number <optional>

Minimum base price (per night, excluding tax), in merchant currency. undefined means price unavailable (e.g., sold out).

minBasePriceDetail object <optional>
Properties
Name Type Description
approximate object

Merchant currency conversion

Properties
Name Type Description
currency string

Currency

exchangeRate number

Exchange rate

currency string

Hotel local currency

amount number

Minimum base price (excluding tax), in hotel local currency

minPrice number <optional>

Minimum price per night including tax, in merchant currency. Available from V12 queries; null when unavailable.

minPriceDetail object <optional>

Minimum price including tax, with the same structure as minBasePriceDetail

Since:
  • 1.0.0