屬性

本頁面將說明屬性和子元素的說明、值和相關規定。這些值僅適用於度假民宿房源。

一般 XML 結構的格式與飯店房源資訊動態饋給相似。請參閱飯店清單 XML 參考資料

未納入下列必要項目,系統會自動停用商店資訊:

  • 必填 XML 子元素:idnamelatitudelongitudeaddress
  • 必要屬性:capacitywebsite。請參閱商家資訊動態饋給中的度假民宿直接連結。讓使用者有機會造訪房源網站。

如要進一步瞭解必要的 XML 子元素,請參閱「XML 子元素」。

如要進一步瞭解度假民宿,請參閱「度假民宿的專屬屬性」。

最後,如果 Google 從其他來源判斷屬性的值與度假民宿房源動態饋給中指定的值不同,就會顯示房源的值。舉例來說,如果 Google 根據房源相片判斷房源有廚房,但 kitchen 屬性不存在或設為 No,Google 就會將房源視為有廚房。這些屬性稱為「推論屬性」,只有在推論準確度相當可靠時才會顯示。

attribute_name 預留位置的值

下表列出 <client_attr name="attribute_name"> 元素中 attribute_name 的有效值,不過建議您提供額外的 attribute_name (如有)。

attribute_name 的值 必填與否 說明 有效的內容值
capacity Required 房源可容納的房客人數上限。這個值應等於或大於「number_of_bedrooms」。 Non-negative integer value
website Required 資源的網站網址。 Free text
partner_hygiene_link Strongly recommended 連結至外部合作夥伴網站,提供更多關於商家清潔度詳細資料的資訊。 Free text (the site's URL)
number_of_bathrooms Strongly recommended 浴室數量。 Non-negative float value, for example, 1, 1.5, 2
number_of_bedrooms Strongly recommended 臥室數量。 Non-negative integer value
number_of_beds Strongly recommended 所有房間的床位數量。 Non-negative integer value
self_checkin_checkout Recommended 資源是否提供自助入住和退房服務。 Yes/No/Unknown
rating Strongly recommended 代表總體房源評分的浮點數。這個數字通常介於 0 到 5、0 到 10 或 0 到 100 之間,但您可以使用任何代表評分系統的範圍。 Non-negative float value
rating_num Strongly recommended 房源的評分次數。 Non-negative integer value
rating_scale Strongly recommended 房源的最高評分。舉例來說,如果 rating_scale 為 5,房源評分應為 3 或 4。

注意:如未指定,預設的 rating_scale 為 0-10。

Non-negative integer value
instant_bookable Strongly recommended 資源是否可透過結帳程序立即預訂。替代方法是等待核准。 Yes/No/Unknown
description Strongly recommended 說明房源獨特特質的自由格式文字 Free text
category Strongly recommended 物業類型,例如別墅、平房、小屋或公寓 Free text
ac Recommended 資源是否有空調。 Yes/No/Unknown
beach_access Recommended 資源是否可通往附近的公共海灘。 Yes/No/Unknown
check_in_time Recommended 入住房源的確切時間。接受 HHMM、HH:MM 或 HH:MM:SS 格式,例如使用 14:00 而非 2pm 或 2:00pm。系統不會剖析或顯示所有其他格式。 Time
check_out_time Recommended 退房時間。接受 HHMM、HH:MM 或 HH:MM:SS 格式,例如使用 11:00 而非 11am 或 11:00am。系統不會剖析或顯示所有其他格式。 Time
child_friendly Recommended 資源是否適合兒童。 Yes/No/Unknown
crib Recommended 資源是否提供嬰兒床。 Yes/No/Unknown
elevator Recommended 資源是否有電梯。 Yes/No/Unknown
gym_fitness_equipment Recommended 資源是否有健身房或健身器材。 Yes/No/Unknown
heating Recommended 資源是否有暖氣。 Yes/No/Unknown
hot_tub Recommended 資源是否有熱水浴缸。 Yes/No/Unknown
ironing_board Recommended 資源是否提供熨衣板。 Yes/No/Unknown
kitchen Recommended 資源是否有廚房。 Yes/No/Unknown
microwave Recommended 資源是否有微波爐。 Yes/No/Unknown
min_days_advance_purchase Recommended 房源最早可預訂的提前天數。 Non-negative integer value
min_night_stay Recommended 旅客可預訂的房源最少天數。 Positive integer (more than zero)
max_night_stay Recommended 房客可預訂的住宿天數上限。 Positive integer (more than zero)
outdoor_grill Recommended 資源是否有燒烤架。 Yes/No/Unknown
oven_stove Recommended 資源是否有火爐。 Yes/No/Unknown
parking_type Recommended 資源提供的停車類型。 Free/Paid/None
patio Recommended 資源是否有露台。 Yes/No/Unknown
pets_allowed Recommended 部分或所有房型允許房客攜帶寵物入住,但必須是狗或貓,且不是服務型動物。 Yes/No/Unknown
pool_type Recommended 房源提供的泳池類型 (泳池使用權)。 Indoors, Outdoors, Indoors/Outdoors, None
room_type Recommended 房型。ENTIRE_PLACE 是唯一支援的值。 ENTIRE_PLACE
smoking_free_property Recommended 房源是否為無菸房源。 Yes/No/Unknown
special_service_level Recommended 商家是否提供特殊服務。例如:verifiedluxurypremium Yes/No/Unknown
square_footage Recommended 房源面積 (以平方英尺為單位)。 Non-negative float value
square_meters Recommended 房源的面積,以平方公尺為單位。 Non-negative float
tv Recommended 資源是否有電視。 Yes/No/Unknown
washer_dryer Recommended 資源是否提供洗衣機。 Yes/No/Unknown
wheelchair_accessible Recommended 資源是否提供無障礙設施。 Yes/No/Unknown
internet_type Recommended 房源提供的 Wi-Fi 網路存取類型。 Free/Paid/None
airport_shuttle Optional 房主是否提供往返機場或其他航廈的交通服務。 Yes/No/Unknown
balcony Optional 資源是否有陽台。 Yes/No/Unknown
fire_place Optional 資源是否有壁爐。 Yes/No/Unknown
free_breakfast Optional 資源是否包含免費早餐。 Yes/No/Unknown
host_description Optional 度假民宿房東的說明。 Free text
host_language Optional 屋主可使用的語言。 以逗號分隔的語言代碼清單,例如:deen
host_name Optional 度假民宿房東的名稱。 Free text
host_response_rate Optional 主辦單位的平均回覆率。 Non-negative float value, for example, 1, 0.75, 0.5
host_response_time Optional 主機的平均回應時間。 Free text
license_num Optional 在全球某些地區需要顯示的資源執照號碼 (遊客或商家)。如果有多份執照,則可以重複添加,建議新增執照發證機構做為背景資訊 (例如:"Paris: 123456ABC")。 Free text
number_of_half_bathrooms Optional 半套浴室數量。 Non-negative integer value
number_of_living_rooms Optional 起居室數量。 Non-negative integer value
private_beach_access Optional 資源是否擁有專屬的非公共海灘。 Yes/No/Unknown
refund_policy Optional 房源的退款政策。 Free text

XML 子元素

下列 XML 子元素為必要元素:

子元素 必填與否 類型 說明
<country> Strongly recommended string 這項商家資訊所在的國家/地區。這個值必須是 ISO 3116 2 個字母國家/地區代碼,例如美國是 US,加拿大是 CA
    <country>US</country>
<id> Required string 房源的專屬 ID。請注意,每個度假民宿都必須有專屬於你網站的 ID,且這個 ID 不得重複使用。
<latitude> Required float 與商家資訊中列出的所在位置對應的緯度,例如:
    <latitude>37.423738</latitude>

您可以使用 GeoCoding 工具 (例如 Google 地圖 API) 產生這個值。

<longitude> Required float 與商家資訊中列出的所在位置對應的經度,例如:
    <longitude>-122.090101</longitude>

您可以使用 GeoCoding 工具 (例如 Google 地圖 API) 產生這個值。

<name> Required string 屬性名稱。長度上限為 300 個半形字元。
<address> Required string or Object

以字串形式提供資源的完整實際位置。地址必須包含街道名稱和門牌號碼。如果沒有,地址應包含加號代碼。如有,也請一併提供公寓或單元號碼。

或者,您也可以提供「複合」地址。使用 <component> 子元素來描述下列地址的各個部分:

  • addr1:主要街道地址。
  • addr2:如有必要,請提供次要街道地址,包括單元號碼。
  • city:城市。
  • province:如有需要,請填入州、區域或省。
  • postal_code:郵遞區號。
  • country:國家/地區。

請注意,郵政信箱或其他僅供郵寄的地址都不算是完整的實際地址。

以下是完整地址的範例:

<address>6 Acacia Ave Apt. 2, Nottingham NG8 6FT, UK/address>
<address>
  <component name="addr1">6 Acacia Ave</component>
  <component name="addr2">Apt. 2</component>
  <component name="city">Nottingham </component>
  <component name="postal_code">NG8 6FT</component>
  <component name="country">UK</component>
</address>

以下是使用 plus code 的完整地址範例:

<address>XQHM+7VF Nottingham NG8 6FT, UK/address>
<address>
  <component name="addr1">XQHM+7VF</component>
  <component name="city">Nottingham </component>
  <component name="postal_code">NG8 6FT</component>
  <component name="country">UK</component>
</address>

請避免以下情況:

  • 重複資訊:請勿加入多餘的資訊或重複的地址元件。
  • 缺少街道地址:地址必須包含街道名稱和門牌號碼。

度假民宿資訊範例

<?xml version="1.0" encoding="UTF-8"?>
<listings>
  <language>en</language>
  <listing>
    <id>123456</id>
    <name>Apartment Name</name>
    <address format="simple">
      <component name="addr1">18733 Clark Way</component>
      <component name="addr2">#C10</component>
      <component name="city">Mountain View</component>
      <component name="postal_code">94043</component>
      <component name="province">California</component>
    </address>
    <country>US</country>
    <latitude>37.4182515</latitude>
    <longitude>-122.0742354</longitude>
    <phone type="main">12345678</phone>
    <category>vacation_villa</category>
    <date day="21" month="12" year="2017"/>
    <content>
      <text type="description">
        <link>https://list_url</link>
        <title>Description Title</title>
        <body>Description Body</body>
      </text>
      <review type="editorial">
        <link>https://example.com/reviews/42</link>
        <title>A little piece of heaven</title>
        <author>EXAMPLE</author>
        <rating>8</rating>
        <body>This place is really good.</body>
      </review>
      <review type="user">
        <link>https://exampleperson.org/reviews/82</link>
        <author>Susan von Trapp</author>
        <rating>6</rating>
        <body>Not a bad place, but I prefer to be closer to the beach.</body>
        <date day="6" month="7" year="2017"/>
        <servicedate day="16" month="6" year="2017"/>
      </review>
      <attributes>
        <website>https://hotel.example.com/123456</website>
        <client_attr name="capacity">7</client_attr>
        <client_attr name="cleaning_disinfection">Yes</client_attr>
        <client_attr name="min_days_between_stays">3</client_attr>
        <client_attr name="enhanced_cleaning_practices">Yes</client_attr>
        <client_attr name="partner_hygiene_link">http://www.example.com/hygiene/</client_attr>
        <client_attr name="number_of_bathrooms">2</client_attr>
        <client_attr name="number_of_bedrooms">3</client_attr>
        <client_attr name="number_of_beds">4</client_attr>
        <client_attr name="self_checkin_checkout">Yes</client_attr>
        <client_attr name="rating">4.8</client_attr>
        <client_attr name="rating_num">5373</client_attr>
        <client_attr name="rating_scale">5</client_attr>
        <client_attr name="ac">Yes</client_attr>
        <client_attr name="airport_shuttle">Yes</client_attr>
        <client_attr name="balcony">No</client_attr>
        <client_attr name="beach_access">Yes</client_attr>
        <client_attr name="check_in_time">15:00</client_attr>
        <client_attr name="check_out_time">11:00</client_attr>
        <client_attr name="child_friendly">Yes</client_attr>
        <client_attr name="crib">Unknown</client_attr>
        <client_attr name="elevator">Yes</client_attr>
        <client_attr name="fire_place">Unknown</client_attr>
        <client_attr name="free_breakfast">Yes</client_attr>
        <client_attr name="gym_fitness_equipment">Yes</client_attr>
        <client_attr name="heating">Yes</client_attr>
        <client_attr name="host_description">A short description about the host and their interests</client_attr>
        <client_attr name="host_name">The name of the host</client_attr>
        <client_attr name="host_language">en, da, el</client_attr>
        <client_attr name="host_response_rate">0.75</client_attr>
        <client_attr name="host_response_time">1 hour</client_attr>
        <client_attr name="hot_tub">Yes</client_attr>
        <client_attr name="instant_bookable">Yes</client_attr>
        <client_attr name="internet_type">Free</client_attr>
        <client_attr name="ironing_board">No</client_attr>
        <client_attr name="kitchen">Yes</client_attr>
        <client_attr name="license_num">Free text. If multiple licenses exist, we suggest adding authority of the licence as context</client_attr>
        <client_attr name="license_num">Paris: 123456ABC</client_attr>
        <client_attr name="microwave">Yes</client_attr>
        <client_attr name="max_night_stay">7</client_attr>
        <client_attr name="min_days_advance_purchase">2</client_attr>
        <client_attr name="min_night_stay">3</client_attr>
        <client_attr name="number_of_living_rooms">1</client_attr>
        <client_attr name="outdoor_grill">No</client_attr>
        <client_attr name="oven_stove">Yes</client_attr>
        <client_attr name="parking_type">Free</client_attr>
        <client_attr name="patio">Unknown</client_attr>
        <client_attr name="pets_allowed">Yes</client_attr>
        <client_attr name="pool_type">Indoors</client_attr>
        <client_attr name="private_beach_access">Unknown</client_attr>
        <client_attr name="room_type">ENTIRE_PLACE</client_attr>
        <client_attr name="refund_policy">The refund policy for the property</client_attr>
        <client_attr name="smoking_free_property">Yes</client_attr>
        <client_attr name="special_service_level">No</client_attr>
        <client_attr name="square_footage">1200</client_attr>
        <client_attr name="tv">Yes</client_attr>
        <client_attr name="washer_dryer">Yes</client_attr>
        <client_attr name="wheelchair_accessible">Yes</client_attr>
      </attributes>
    </content>
  </listing>
</listings>