作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
有谁知道如何为 GeoShape Circle 创建架构?我正在尝试为我的基于服务的业务设置一个覆盖区域(没有物理位置)。
我想在加利福尼亚州萨克拉门托的各个方向行驶 30 英里
这是我开始的代码
"areaServed": [
{
"@type": "AdministrativeArea",
"geo": {
"@type": "GeoCoordinates",
"latitute": "",
"longitude": ""
}
},
最佳答案
areaServed
属性可以有一个 GeoShape
直接赋值,不需要 AdministrativeArea
+ geo
(无论如何,这似乎不适合您的情况)。
因为 GeoCircle
是 GeoShape
的子类型,您也可以将其用作值。
然后你可以提供geoMidpoint
和 geoRadius
(如果没有单位,则以米为单位)。
所以它看起来像:
"areaServed": {
"@type": "GeoCircle",
"geoMidpoint": {
"@type": "GeoCoordinates",
"latitude": "",
"longitude": ""
},
"geoRadius": "48280.3"
}
关于json - 如何为 GeoShape Circle 执行 JSON-LD 架构?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38806594/
我是一名优秀的程序员,十分优秀!