首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为旅行/旅游选择schema.org类型

为旅行/旅游选择schema.org类型
EN

Webmasters Stack Exchange用户
提问于 2017-12-17 14:13:57
回答 3查看 4.2K关注 0票数 1

我正在尝试选择最适合多天旅游活动的schema.org格式,比如旅游。

它具有以下属性:

  • 开始时间,例如2018年5月29日
  • 截止时间,例如2018年6月7日
  • 持续时间,例如7天
  • 起点(可以是不同城市/国家的位置)
  • 终点(地点)
  • 价格,例如99美元
  • 评级

理想情况下,我希望从丰富的片段中获益。不确定productevent是否适合这样做:据说产品描述物理产品,在我看来,事件在一天内就持续了一段时间。

不过,我在丰富的片段中找不到其他合适的格式。提供另一个模式有意义吗?那有什么好处呢?

EN

回答 3

Webmasters Stack Exchange用户

发布于 2017-12-18 13:01:31

为类型TravelAction应用标记。例如:

代码语言:javascript
复制
<main vocab=https://schema.org/ typeof=TravelAction>
<h1 property=name>Your travel tour to Z</h1>
<p property=description>zzzzzz</p>
<p><time property=startTime datetime=2018-05-29></time></p>
<p><time property=endTime datetime=2018-06-07></time></p>
<section property=fromLocation typeof=Place>
<h2>Start from</h2>
<div property=address typeof=PostalAddress>
<p property=streetAddress>The street address.</p>
<p property=postalCode>555 55</p>
<p property=addressRegion>The region</p>
<p property=addressLocality>The locality</p>
<p property=addressCountry>The country (You can also provide the two-letter ISO 3166-1 alpha-2 country code https://en.wikipedia.org/wiki/ISO_3166-1 exempel:<meta property=addressCountry content=SE>)</p>
</div>
</section>
<section property=toLocation typeof=Place>
<h2>End to</h2>
<div property=address typeof=PostalAddress>
<p property=addressLocality>The locality</p>
<p property=addressCountry>The country<meta property=addressCountry content=AR> (You can also provide the two-letter ISO 3166-1 alpha-2 country code https://en.wikipedia.org/wiki/ISO_3166-1 )</p>
</div></section>
<section property=potentialAction typeof=TradeAction>
<h2 property=name>The Price</h2>
<p property=priceSpecification typeof=PriceSpecification>A1lt;meta property=priceCurrency content=USD>99<meta property=price content=99></p>
</section></main>

查看Google工具 ++信息中关于ISO 4217货币代码的标记。

票数 4
EN

Webmasters Stack Exchange用户

发布于 2019-11-14 05:00:46

一年多过去了,这可能帮不了你。但希望它能帮助其他人!http://schema.org/TouristTrip

票数 3
EN

Webmasters Stack Exchange用户

发布于 2020-10-16 18:23:25

尝试这个模式,也许它将适合您的需要。

https://schema.org/Trip

代码语言:javascript
复制
    <div class="tourist-trip-wrapper">
<h1>
 Australia and New Zealand
</h1>
<p>
This trip is modeled as two distinct Tourist Trips using the subTrip property.
</p>
<div class="has-part-wrapper">
<div>
  <h2>
    Australia
  </h2>
  <p>
    This is a trip on its own.
  </p>
</div>
<div>
  <h2>
    New Zealand
  </h2>
  <p>
    This is another trip nested inside the main one.
  </p>
</div>

还有一个旅行社的模式

https://schema.org/TravelAgency

票数 1
EN
页面原文内容由Webmasters Stack Exchange提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://webmasters.stackexchange.com/questions/111443

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档