有谁知道如何为GeoShape Circle做架构?我正在尝试为我的基于服务的业务(没有实际位置)设置覆盖区域。
我想在加利福尼亚州萨克拉门托的各个方向行驶30英里
这是我开始的代码
"areaServed": [
{
"@type": "AdministrativeArea",
"geo": {
"@type": "GeoCoordinates",
"latitute": "",
"longitude": ""
}
},
答案 0 :(得分:3)
areaServed
属性可以直接具有GeoShape
值,无需AdministrativeArea
+ geo
(这似乎不适合您的情况,无论如何)
由于GeoCircle
是GeoShape
的子类型,因此您也可以将其用作值。
然后,您可以提供geoMidpoint
和geoRadius
(如果没有单位,则以米为单位)。
所以它看起来像:
"areaServed": {
"@type": "GeoCircle",
"geoMidpoint": {
"@type": "GeoCoordinates",
"latitude": "",
"longitude": ""
},
"geoRadius": "48280.3"
}