2015-09-23 136 views
2

我們有一些餐館有多個地點或分店。我想包含正確的Schema.org標記,但一直未能找到允許列出多個餐館的任何內容。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 protected]", 
     "telephone": "0123", 
     "url": "http://website.address.com", 
     "logo" : "http://website.address.com/logo.png" 
    } 
</script> 

回答

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": "", 
     "email": "[email protected]", 
     "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" : "[email protected]" 
      }, 
      { 
       "@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" : "[email protected]" 
      } 
     ]  
    } 
    </script> 

我已經通過谷歌驗證器(https://developers.google.com/structured-data/testing-tool/)運行了這一切,一切都恢復良好。如果任何人有任何建議,以更好地優化以上,我會有興趣聽到!謝謝。