如果您正在为当地一家旅游运营商的企业实现模式标记,您会对下面列出的模式标记进行哪些添加或更改。我从一个在线模式工具创建者那里生成了这段代码,但我不知道它是否是最好的模式标记。
<div itemscope itemtype="http://schema.org/LocalBusiness">
<a itemprop="url" href="www.downtownaustintours.com"><div itemprop="name">Austin Tours Inc</div>
</a>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">100 Congress Ave</span><br>
<span itemprop="addressLocality">Austin</span>,
<span itemprop="addressRegion">Texas</span>
<span itemprop="postalCode">78701</span><br>
<span itemprop="addressCountry">United States</span><br>
<span itemprop="phone">(512) 111-2222</span>
<div itemprop="geo" itemscope itemtype="http://schema.org/GeoCoordinates">
<meta itemprop="latitude" content="30.263843"/>
<meta itemprop="longitude" content="-97.744655"/>
</div>
</div>
</div>此外,似乎可以选择使用项目类型"http://schema.org/TravelAgency“而不是”http://schema.org/LocalBusiness“。你有什么建议吗?我该怎么做?有没有一种方法可以在模式标记中包含"United States“,而不让它实际出现在页面上的可见文本中?大多数企业通常不会在地址中列出“美国”。
发布于 2014-01-12 13:09:29
由于schema.org/TravelAgency并不能真正准确地描述您的业务,我建议您使用LocalBusiness模式,然后通过使用"additionalType“属性获得更细粒度的标记,如下所示:
<div itemscope itemtype="http://schema.org/LocalBusiness">
<link itemprop="additionalType" href="http://www.productontology.org/doc/Tour_operator" />
<a itemprop="url" href="www.downtownaustintours.com"><div itemprop="name">Austin Tours Inc</div>
</a>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">100 Congress Ave</span><br>
<span itemprop="addressLocality">Austin</span>,
<span itemprop="addressRegion">Texas</span>
<span itemprop="postalCode">78701</span><br>
<meta itemprop="addressCountry" content="United States" /><br>
</div>
<span itemprop="telephone">(512) 111-2222</span>
<div itemprop="geo" itemscope itemtype="http://schema.org/GeoCoordinates">
<meta itemprop="latitude" content="30.263843"/>
<meta itemprop="longitude" content="-97.744655"/>
</div>
</div>通常,电话号码不嵌套在PostalAddress模式中,并且属性是“电话”,而不是“电话”。您也可以对country属性使用meta标记,就像我上面所做的那样。所以试一试,测试一下,看看你是否喜欢结果。我希望这能有所帮助。
大卫
https://stackoverflow.com/questions/21070274
复制相似问题