【问题标题】:How do I do JSON-LD Schema for GeoShape Circle?如何为 GeoShape Circle 执行 JSON-LD 架构?
【发布时间】:2016-08-06 16:48:48
【问题描述】:

有谁知道如何为 GeoShape Circle 制作架构?我正在尝试为基于服务的业务设置覆盖区域(无实际位置)。

我想在加利福尼亚州萨克拉门托的各个方向行驶 30 英里

这是我开始的代码

        "areaServed": [
{
    "@type": "AdministrativeArea",
    "geo": {
        "@type": "GeoCoordinates",
        "latitute": "",
        "longitude": ""
        }
},

【问题讨论】:

  • @unor 是这里的权威。我听从他的建议。

标签: json seo schema.org json-ld


【解决方案1】:

areaServed 属性可以直接具有GeoShape 值,不需要AdministrativeArea + geo(无论如何,这似乎不适合您的情况)。

因为GeoCircleGeoShape 的子类型,所以您也可以将其用作值。

然后您可以提供geoMidpointgeoRadius(如果没有单位,则以米为单位)。

所以它可能看起来像:

"areaServed": {
  "@type": "GeoCircle",
  "geoMidpoint": {
    "@type": "GeoCoordinates",
    "latitude": "",
    "longitude": ""
  },
  "geoRadius": "48280.3"
}

【讨论】:

  • TY @unor。 geoRadius 的 unitOfMeasure 的文档在哪里?在我这边找不到。
  • @JayGray:你的意思是如何指定一个单位?格式必须遵循 Distance (<Number> <Length unit of measure>) 的定义,但我认为 Schema.org 没有长度单位列表。只需使用众所周知的/标准术语/缩写即可。
猜你喜欢
  • 2017-11-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-04-16
  • 2017-03-29
  • 2018-12-29
  • 2021-03-28
  • 1970-01-01
相关资源
最近更新 更多