文档中心 > 预建模型 (Pre-Built Models)

接口属性格式

更新时间:2019/02/26 访问次数:297

百分比

表示一个百分比值。取值区间从0到100。

Example fuelLevel percentage

{
  "name": "fuelLevel",
  "value": 74
}

距离

表示一段距离,此距离可能以多种单位的其中之一表示。

字段 描述 类型
value 指定单位下的距离 数字
unit 用以表示某个距离单位的字串 距离单位字串

Example remainingRange distance

{
  "name": "remainingRange",
  "value": {
    "value": 20.5,
    "unit": "KILOMETER"
  }
}

距离单位取值

单位 系统 描述
KILOMETER 公制 公里
MILE 英制 英哩,1英哩约等于1.61公里

地理位置

属性名称 类型 描述
coordinate 经纬度 该地理位置的经纬度
address 字串 该地理位置的地址
name 字串 该地理位置的名称

Example location

{
  "name": "location",
  "value": {
    "coordinate": {
      "latitudeInDegrees": 123.125,
      "longitudeInDegrees": 34.567
    },
    "address": "浙江省杭州市余杭区文一西路969号",    
    "name": "阿里巴巴西溪园区"
  }
}

FAQ

关于此文档暂时还没有FAQ
返回
顶部