如何解决如何为 LocalBusiness 指定多个 areaServed例如多个自治市?
许多企业为多个城市服务。
这应该如何在 https://schema.org/areaServed (JSON LD) 中表达?
例如按照https://schema.org/Service:
<script type="application/ld+json">
{
"@context": "https://schema.org/","@type": "Service","serviceType": "Weekly home cleaning","provider": {
"@type": "LocalBusiness","name": "ACME Home Cleaning"
},"areaServed": {
"@type": "City","name": "New York"
},... ?
</script>
应该是:
"areaServed": {
"@type": "City","name": "New York"
},"areaServed": {
"@type": "City","name": "Buffalo"
},"name": "Syracuse"
},
或者类似的东西:
"areaServed": {
"@type": "City","name": "New York","name": "Buffalo",
或者别的什么?
解决方法
根据架构文档,属性 areaServed 可以具有以下类型之一的值:
- 行政区域
- 地理形状
- 地点
- 文字
这里没有您在示例中指出的类型 City。所以我使用了 Place 类型作为我给你的建议(或者是 AdministrativeArea 类型):
{
"@context": "https://schema.org/","@type": "Service","serviceType": "Weekly home cleaning","provider": {
"@type": "LocalBusiness","name": "ACME Home Cleaning"
},"areaServed": {
"@type": "Place","name":[ "New York","Buffalo"]
}
}
要使用替代方法,只需将名称更改为输入即可。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。