Schema.org中的多家餐厅

时间:2015-09-23 10:19:20

标签: schema.org json-ld

我们有一些餐厅有多个地点或分支机构。我想要包含正确的Schema.org标记,但无法找到允许列出多个餐馆的任何内容。

每家餐厅都有自己的地址,电子邮件,电话和开放时间,甚至可能是“分店名称”。

两个分支机构都列在同一个网站上。

以下是我们通常使用的单一餐厅架构的示例:

<script type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "Restaurant",
      "name": "Resty name",
      "openingHours": [
        "Tu-Sa 18:00-21:30",
        "Fr-Sa 12:00-14:30"
      ],
      "address": {
        "@type": "PostalAddress",
        "addressRegion": "addy region",
        "postalCode": "POST CODE",
        "streetAddress": "street addy"
      },
      "servesCuisine": [
        "type",
        "another type"
      ],
      "email" : "email@address.com",
      "telephone": "0123",
      "url": "http://website.address.com",
      "logo" : "http://website.address.com/logo.png"
    }
</script>

1 个答案:

答案 0 :(得分:2)

我遇到了部门规范,我认为这是我应该在同一个组织的多个地点进行标记的方式;

<script type="application/ld+json">
    {
        "@context": "http://schema.org",
        "@type": "Organization",
        "name": "Orga name",
        "url": "http://orga-url.com",
        "logo": "http://orga-url/img/logo.png",
        "telephone": "01234567890",
        "email": "info@orga-url.com",
        "department": 
        [
          {
              "@type": "Restaurant",
              "name": "Resta name",
              "address": {
                "@type": "PostalAddress",
                "addressRegion": "region",
                "postalCode": "POST",
                "streetAddress": "Street addy"
              },
              "openingHours": [
                "Tu-Fr 17:00-00:00",
                "Sa 12:00-00:00",
                "Su 12:00-21:00"
              ],
              "email" : "branch@orga-url.com"
          },
          {
              "@type": "Restaurant",
              "name": "Resta name",
              "address": {
                "@type": "PostalAddress",
                "addressRegion": "region",
                "postalCode": "POST",
                "streetAddress": "Street addy"
              },
              "openingHours": [
                "Mo-Th 11:00-00:00",
                "Fr-Sa 11:00-00:30",
                "Su 11:00-23:00"
              ],
              "email" : "branch@orga-url.com"
          }
        ]    
    }
  </script>

我已通过Google验证器(https://developers.google.com/structured-data/testing-tool/)运行此操作,一切都恢复正常。如果有人有任何建议可以更好地优化上述内容,我将有兴趣听到!感谢。