gpt4 book ai didi

schema.org - Schema.org 中的多家餐厅

转载 作者:行者123 更新时间:2023-12-01 02:05:57 30 4
gpt4 key购买 nike

我们有一些餐厅有多个地点或分支机构。我想包含正确的 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>

最佳答案

我遇到了部门规范,我认为这是我应该标记同一组织的多个位置的方式;

<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/ ) 运行了它,一切都恢复正常。如果有人有任何建议可以更好地优化上述内容,我很想听听!谢谢。

关于schema.org - Schema.org 中的多家餐厅,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32736922/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com