gpt4 book ai didi

json - 如何为 GeoShape Circle 执行 JSON-LD 架构?

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:30:32 24 4
gpt4 key购买 nike

有谁知道如何为 GeoShape Circle 创建架构?我正在尝试为我的基于服务的业务设置一个覆盖区域(没有物理位置)。

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

这是我开始的代码

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

最佳答案

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

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

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

所以它看起来像:

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

关于json - 如何为 GeoShape Circle 执行 JSON-LD 架构?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38806594/

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