路网数字化服务 DRIS-创建长期交通事件:请求示例

时间:2024-01-02 08:31:52

请求示例

POST https://{endpoint}/v1/{project_id}/traffic-events
Content-Type:application/json
X-Auth-Token:********
Instance-Id:********

{
  "note" : "note",
  "event_source_id" : "11",
  "event_source_type" : "unknown",
  "area_code" : 440300,
  "event_description" : "123",
  "end_time" : "2022-01-05T21:25:14Z",
  "event_confidence" : 1,
  "reference_paths" : [ {
    "path_radius" : 1000,
    "active_path" : [ {
      "lon" : 114.123456,
      "lat" : 22.123456
    }, {
      "lon" : 115.123456,
      "lat" : 23.123456
    } ]
  } ],
  "event_params" : {
    "user_defined_param1" : "10"
  },
  "event_position_name" : "深圳市龙岗区坂田华为基地F4",
  "event_position" : {
    "lon" : 114.123456,
    "lat" : 22.123456
  },
  "start_time" : "2021-12-30T21:25:14Z",
  "event_type" : 100,
  "event_class" : "AbnormalTraffic",
  "event_level" : 1,
  "coordinate" : "WGS84"
}
support.huaweicloud.com/api-v2x/v2x_04_0048.html