如何为GeoShape Circle执行JSON-LD模式?

时间:2016-08-06 16:48:48

标签: json seo schema.org json-ld

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

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

这是我开始的代码

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

1 个答案:

答案 0 :(得分:3)

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

由于GeoCircleGeoShape的子类型,因此您也可以将其用作值。

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

所以它看起来像:

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