|
|
|
|
@@ -18,12 +18,16 @@ enum class EventTypeEnum(
|
|
|
|
|
GAS_STATION("10001", "加油站", content = "加油站附近", tts = "加油站"),
|
|
|
|
|
|
|
|
|
|
//交通检查
|
|
|
|
|
TRAFFIC_CHECK("10002", "交通检查", "前方交通检查",
|
|
|
|
|
R.drawable.v2x_icon_jiaotongjiancha_vr, "前方交通检查", "交通检查"),
|
|
|
|
|
TRAFFIC_CHECK(
|
|
|
|
|
"10002", "交通检查", "前方交通检查",
|
|
|
|
|
R.drawable.v2x_icon_jiaotongjiancha_vr, "前方交通检查", "交通检查"
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
//封路
|
|
|
|
|
ROAD_CLOSED("10003", "封路", "前方封路", R.drawable.v2x_icon_fenglu_vr,
|
|
|
|
|
"前方封路", "道路封路"),
|
|
|
|
|
ROAD_CLOSED(
|
|
|
|
|
"10003", "封路", "前方封路", R.drawable.v2x_icon_fenglu_vr,
|
|
|
|
|
"前方封路", "道路封路"
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
//商场打折
|
|
|
|
|
SHOP_DISCOUNT("10004", ""),
|
|
|
|
|
@@ -32,23 +36,31 @@ enum class EventTypeEnum(
|
|
|
|
|
FOURS_4S("10005", ""),
|
|
|
|
|
|
|
|
|
|
//施工
|
|
|
|
|
FOURS_ROAD_WORK("10006", "道路施工", "前方施工", R.drawable.v2x_icon_daolushigong_vr,
|
|
|
|
|
"前方施工", "道路施工"),
|
|
|
|
|
FOURS_ROAD_WORK(
|
|
|
|
|
"10006", "道路施工", "前方施工", R.drawable.v2x_icon_daolushigong_vr,
|
|
|
|
|
"前方施工", "道路施工"
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
//拥堵
|
|
|
|
|
FOURS_BLOCK_UP("10007", "道路拥堵", "前方拥堵", R.drawable.v2x_icon_yongdu_vr,
|
|
|
|
|
"前方道路拥堵", "道路拥堵"),
|
|
|
|
|
FOURS_BLOCK_UP(
|
|
|
|
|
"10007", "道路拥堵", "前方拥堵", R.drawable.v2x_icon_yongdu_vr,
|
|
|
|
|
"前方道路拥堵", "道路拥堵"
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
//积水
|
|
|
|
|
FOURS_PONDING("10008", "道路积水", "前方道路积水", R.drawable.v2x_icon_jishui_vr,
|
|
|
|
|
"前方道路积水", "道路积水"),
|
|
|
|
|
FOURS_PONDING(
|
|
|
|
|
"10008", "道路积水", "前方道路积水", R.drawable.v2x_icon_jishui_vr,
|
|
|
|
|
"前方道路积水", "道路积水"
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
//超市打折
|
|
|
|
|
FOURS_SHOP_FREE("10009", ""),
|
|
|
|
|
|
|
|
|
|
//浓雾
|
|
|
|
|
FOURS_FOG("10010", "出现浓雾", "浓雾预警", R.drawable.v2x_icon_nongwu_vr,
|
|
|
|
|
"前方出现浓雾", "出现浓雾"),
|
|
|
|
|
FOURS_FOG(
|
|
|
|
|
"10010", "出现浓雾", "浓雾预警", R.drawable.v2x_icon_nongwu_vr,
|
|
|
|
|
"前方出现浓雾", "出现浓雾"
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
//结冰
|
|
|
|
|
FOURS_ICE("10011", "路面结冰", content = "前方路面结冰", tts = "路面结冰"),
|
|
|
|
|
@@ -57,28 +69,40 @@ enum class EventTypeEnum(
|
|
|
|
|
FOURS_PARKING("10012", "停车场", content = "停车场附近", tts = "停车场"),
|
|
|
|
|
|
|
|
|
|
//事故
|
|
|
|
|
FOURS_ACCIDENT("10013", "交通事故", "前方交通事故", R.drawable.v2x_icon_jiaotongshigu_vr,
|
|
|
|
|
"前方交通事故", "交通事故"),
|
|
|
|
|
FOURS_ACCIDENT(
|
|
|
|
|
"10013", "交通事故", "前方交通事故", R.drawable.v2x_icon_jiaotongshigu_vr,
|
|
|
|
|
"前方交通事故", "交通事故"
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
//重大事故
|
|
|
|
|
FOURS_ACCIDENT_01("1001301", "交通事故", "前方交通事故", R.drawable.v2x_icon_jiaotongshigu_vr,
|
|
|
|
|
"前方交通事故", "交通事故"),
|
|
|
|
|
FOURS_ACCIDENT_01(
|
|
|
|
|
"1001301", "交通事故", "前方交通事故", R.drawable.v2x_icon_jiaotongshigu_vr,
|
|
|
|
|
"前方交通事故", "交通事故"
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
//特大事故
|
|
|
|
|
FOURS_ACCIDENT_02("1001302", "交通事故", "前方交通事故", R.drawable.v2x_icon_jiaotongshigu_vr,
|
|
|
|
|
"前方交通事故", "交通事故"),
|
|
|
|
|
FOURS_ACCIDENT_02(
|
|
|
|
|
"1001302", "交通事故", "前方交通事故", R.drawable.v2x_icon_jiaotongshigu_vr,
|
|
|
|
|
"前方交通事故", "交通事故"
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
//较大事故
|
|
|
|
|
FOURS_ACCIDENT_03("1001303", "交通事故", "前方交通事故", R.drawable.v2x_icon_jiaotongshigu_vr,
|
|
|
|
|
"前方交通事故", "交通事故"),
|
|
|
|
|
FOURS_ACCIDENT_03(
|
|
|
|
|
"1001303", "交通事故", "前方交通事故", R.drawable.v2x_icon_jiaotongshigu_vr,
|
|
|
|
|
"前方交通事故", "交通事故"
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
//一般事故
|
|
|
|
|
FOURS_ACCIDENT_04("1001304", "交通事故", "前方交通事故", R.drawable.v2x_icon_jiaotongshigu_vr,
|
|
|
|
|
"前方交通事故", "交通事故"),
|
|
|
|
|
FOURS_ACCIDENT_04(
|
|
|
|
|
"1001304", "交通事故", "前方交通事故", R.drawable.v2x_icon_jiaotongshigu_vr,
|
|
|
|
|
"前方交通事故", "交通事故"
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
//轻微事故
|
|
|
|
|
FOURS_ACCIDENT_05("1001305", "交通事故", "前方交通事故", R.drawable.v2x_icon_jiaotongshigu_vr,
|
|
|
|
|
"前方交通事故", "交通事故"),
|
|
|
|
|
FOURS_ACCIDENT_05(
|
|
|
|
|
"1001305", "交通事故", "前方交通事故", R.drawable.v2x_icon_jiaotongshigu_vr,
|
|
|
|
|
"前方交通事故", "交通事故"
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
//身边
|
|
|
|
|
FOURS_NEALY("10014", "身边事件"),
|
|
|
|
|
@@ -123,220 +147,222 @@ enum class EventTypeEnum(
|
|
|
|
|
TYPE_USECASE_ID_EBW(
|
|
|
|
|
ObuConstants.USE_CASE_ID.EBW.toString(),
|
|
|
|
|
"紧急制动预警",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_emergency_brake,
|
|
|
|
|
content="前车急刹车",
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_emergency_brake,
|
|
|
|
|
content = "前车急刹车",
|
|
|
|
|
tts = "前车急刹车"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_FCW(
|
|
|
|
|
ObuConstants.USE_CASE_ID.FCW.toString(),
|
|
|
|
|
"前向碰撞预警",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_collision_warning,
|
|
|
|
|
content="前车碰撞预警",
|
|
|
|
|
tts="小心前车"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_collision_warning,
|
|
|
|
|
content = "前车碰撞预警",
|
|
|
|
|
tts = "小心前车"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_ICW(
|
|
|
|
|
ObuConstants.USE_CASE_ID.ICW.toString(),
|
|
|
|
|
"交叉路口碰撞预警",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_collision_warning,
|
|
|
|
|
content="交叉路口碰撞预警",
|
|
|
|
|
tts="注意交叉路口车辆"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_collision_warning,
|
|
|
|
|
content = "交叉路口碰撞预警",
|
|
|
|
|
tts = "注意交叉路口车辆"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_CLW(
|
|
|
|
|
ObuConstants.USE_CASE_ID.CLW.toString(),
|
|
|
|
|
"车辆失控预警",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_vehicle_control,
|
|
|
|
|
content="前%s失控预警",
|
|
|
|
|
tts="小心%s失控车辆"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_vehicle_control,
|
|
|
|
|
content = "前%s失控预警",
|
|
|
|
|
tts = "小心%s失控车辆"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_DNPW(
|
|
|
|
|
ObuConstants.USE_CASE_ID.DNPW.toString(),
|
|
|
|
|
"逆向超车预警",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_reverse_overtaking,
|
|
|
|
|
content="逆向超车预警",
|
|
|
|
|
tts="注意对向来车"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_reverse_overtaking,
|
|
|
|
|
content = "逆向超车预警",
|
|
|
|
|
tts = "注意对向来车"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_AVW(
|
|
|
|
|
ObuConstants.USE_CASE_ID.AVW.toString(),
|
|
|
|
|
"异常车辆提醒",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_abnormal_vehicle,
|
|
|
|
|
content="%s车异常",
|
|
|
|
|
tts="小心%s异常车辆"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_abnormal_vehicle,
|
|
|
|
|
content = "%s车异常",
|
|
|
|
|
tts = "小心%s异常车辆"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_BSW(
|
|
|
|
|
ObuConstants.USE_CASE_ID.BSW.toString(),
|
|
|
|
|
"盲区预警",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_blind_area_collision,
|
|
|
|
|
content="%s后盲区预警",
|
|
|
|
|
tts="注意%s后车辆"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_blind_area_collision,
|
|
|
|
|
content = "%s后盲区预警",
|
|
|
|
|
tts = "注意%s后车辆"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_LCW(
|
|
|
|
|
ObuConstants.USE_CASE_ID.LCW.toString(),
|
|
|
|
|
"变道预警",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_reverse_overtaking,
|
|
|
|
|
content="%s向变道预警",
|
|
|
|
|
tts="注意%s后车辆"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_reverse_overtaking,
|
|
|
|
|
content = "%s向变道预警",
|
|
|
|
|
tts = "注意%s后车辆"
|
|
|
|
|
),//注意左后车辆/注意右后车辆
|
|
|
|
|
TYPE_USECASE_ID_EVW(
|
|
|
|
|
ObuConstants.USE_CASE_ID.EVW.toString(),
|
|
|
|
|
"紧急车辆提醒",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_special_vehicle_access,
|
|
|
|
|
content="注意特种车辆通行",
|
|
|
|
|
tts="请避让特种车辆"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_special_vehicle_access,
|
|
|
|
|
content = "注意特种车辆通行",
|
|
|
|
|
tts = "请避让特种车辆"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_VRUCW_PERSON(
|
|
|
|
|
0X2B0201.toString(),
|
|
|
|
|
"弱势交通参与者碰撞预警",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_pedestrian_crossing,
|
|
|
|
|
content="注意行人",
|
|
|
|
|
tts="注意行人"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_pedestrian_crossing,
|
|
|
|
|
content = "注意行人",
|
|
|
|
|
tts = "注意行人"
|
|
|
|
|
),//行人/摩托车碰撞预警
|
|
|
|
|
TYPE_USECASE_ID_VRUCW_MOTORBIKE(
|
|
|
|
|
0X2B0202.toString(),
|
|
|
|
|
"弱势交通参与者碰撞预警",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_motorcycle_collision,
|
|
|
|
|
content="注意摩托车",
|
|
|
|
|
tts="注意摩托车"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_motorcycle_collision,
|
|
|
|
|
content = "注意摩托车",
|
|
|
|
|
tts = "注意摩托车"
|
|
|
|
|
),//摩托车碰撞预警
|
|
|
|
|
TYPE_USECASE_ID_SLW(
|
|
|
|
|
ObuConstants.USE_CASE_ID.SLW.toString(),
|
|
|
|
|
"限速预警",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_over_speed,
|
|
|
|
|
content="已超速",
|
|
|
|
|
tts="已超速"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_over_speed,
|
|
|
|
|
content = "已超速",
|
|
|
|
|
tts = "已超速"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_LTA(
|
|
|
|
|
ObuConstants.USE_CASE_ID.LTA.toString(),
|
|
|
|
|
"左转辅助",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_collision_warning,
|
|
|
|
|
content="左转碰撞预警",
|
|
|
|
|
tts="注意路口对向来车"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_collision_warning,
|
|
|
|
|
content = "左转碰撞预警",
|
|
|
|
|
tts = "注意路口对向来车"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_HLW(
|
|
|
|
|
ObuConstants.USE_CASE_ID.HLW.toString(),
|
|
|
|
|
"道路危险情况预警",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_road_dangerous,
|
|
|
|
|
content="道路危险情况预警",
|
|
|
|
|
tts="前方路况危险,小心行驶"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_road_dangerous,
|
|
|
|
|
content = "道路危险情况预警",
|
|
|
|
|
tts = "前方路况危险,小心行驶"
|
|
|
|
|
),//(如果能给出具体的类别,则播报具体危险类别)
|
|
|
|
|
TYPE_USECASE_ID_IVS(
|
|
|
|
|
ObuConstants.USE_CASE_ID.IVS.toString(),
|
|
|
|
|
"车内标牌",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_road_construction,
|
|
|
|
|
content="车内标牌",
|
|
|
|
|
tts=""
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_road_construction,
|
|
|
|
|
content = "车内标牌",
|
|
|
|
|
tts = ""
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_TJW(
|
|
|
|
|
ObuConstants.USE_CASE_ID.TJW.toString(),
|
|
|
|
|
"前方拥堵提醒",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_congestion,
|
|
|
|
|
content="前方%d米道路拥堵",
|
|
|
|
|
tts="前方拥堵,减速慢行"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_congestion,
|
|
|
|
|
content = "前方%d米道路拥堵",
|
|
|
|
|
tts = "前方拥堵,减速慢行"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_IVP(
|
|
|
|
|
ObuConstants.USE_CASE_ID.IVP.toString(),
|
|
|
|
|
"闯红灯预警",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_traffic_lights_red,
|
|
|
|
|
content="路口红灯,禁止通行",
|
|
|
|
|
tts="路口红灯,禁止通行"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_traffic_lights_red,
|
|
|
|
|
content = "路口红灯,禁止通行",
|
|
|
|
|
tts = "路口红灯,禁止通行"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_IVP_GREEN(
|
|
|
|
|
0x2B091.toString(),
|
|
|
|
|
"绿波通行",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_traffic_lights_green,
|
|
|
|
|
content="建议车速 %s KM/H",
|
|
|
|
|
tts="建议车速 %s KM/H"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_traffic_lights_green,
|
|
|
|
|
content = "建议车速 %s KM/H",
|
|
|
|
|
tts = "建议车速 %s KM/H"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_COC(
|
|
|
|
|
ObuConstants.USE_CASE_ID.COC.toString(),
|
|
|
|
|
"预留",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_abnormal_vehicle,
|
|
|
|
|
content="路况预警",
|
|
|
|
|
tts="路况预警"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_abnormal_vehicle,
|
|
|
|
|
content = "路况预警",
|
|
|
|
|
tts = "路况预警"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_ROAD_TRAMCAR(
|
|
|
|
|
0x2C01.toString(),
|
|
|
|
|
"前方有轨电车提醒",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_tramcar,
|
|
|
|
|
content="注意前方有轨电车",
|
|
|
|
|
tts="注意前方有轨电车驶过"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_tramcar,
|
|
|
|
|
content = "注意前方有轨电车",
|
|
|
|
|
tts = "注意前方有轨电车驶过"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_ROAD_TURN_LEFT_SHARP(
|
|
|
|
|
0x2C02.toString(),
|
|
|
|
|
"前方左转急弯",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_turn_left_sharp,
|
|
|
|
|
content="注意前方左转急弯",
|
|
|
|
|
tts="前方路口左转急弯,减速慢行",
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_turn_left_sharp,
|
|
|
|
|
content = "注意前方左转急弯",
|
|
|
|
|
tts = "前方路口左转急弯,减速慢行",
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_ROAD_TURN_RIGHT_SHARP(
|
|
|
|
|
0x2C03.toString(),
|
|
|
|
|
"前方右转急弯",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_turn_right_sharp,
|
|
|
|
|
content="注意前方右转急弯",
|
|
|
|
|
tts="前方路口右转急弯,减速慢行"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_turn_right_sharp,
|
|
|
|
|
content = "注意前方右转急弯",
|
|
|
|
|
tts = "前方路口右转急弯,减速慢行"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_ROAD_PEDESTRIAN_CROSSING(
|
|
|
|
|
0x2C04.toString(),
|
|
|
|
|
"人行横道",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_pedestrian_crossing,
|
|
|
|
|
content="注意前方人行横道",
|
|
|
|
|
tts="前方人行横道,减速慢行"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_pedestrian_crossing,
|
|
|
|
|
content = "注意前方人行横道",
|
|
|
|
|
tts = "前方人行横道,减速慢行"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_ROAD_PEDESTRIAN_SCHOOL(
|
|
|
|
|
0x2C05.toString(),
|
|
|
|
|
"学校",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_school,
|
|
|
|
|
content="注意前方学校",
|
|
|
|
|
tts="前方学校,减速慢行"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_school,
|
|
|
|
|
content = "注意前方学校",
|
|
|
|
|
tts = "前方学校,减速慢行"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_ROAD_COLLISION_WARNING(
|
|
|
|
|
0x2C06.toString(),
|
|
|
|
|
"事故易发路段",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_collision_warning,
|
|
|
|
|
content="注意当前路段事故多发",
|
|
|
|
|
tts="当前路段事故多发,请小心驾驶"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_collision_warning,
|
|
|
|
|
content = "注意当前路段事故多发",
|
|
|
|
|
tts = "当前路段事故多发,请小心驾驶"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_ROAD_ROUNDABOUTPNG(
|
|
|
|
|
0x2C07.toString(),
|
|
|
|
|
"环岛行驶",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_roundaboutpng,
|
|
|
|
|
content="注意前方驶入环岛",
|
|
|
|
|
tts="即将驶入环岛,减速慢行"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_roundaboutpng,
|
|
|
|
|
content = "注意前方驶入环岛",
|
|
|
|
|
tts = "即将驶入环岛,减速慢行"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_ROAD_TEST_SECTION(
|
|
|
|
|
0x2C08.toString(),
|
|
|
|
|
"驾校考试路段",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_test_section,
|
|
|
|
|
content="注意前方驾校考试路段",
|
|
|
|
|
tts="驾校考试路段,请小心驾驶"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_test_section,
|
|
|
|
|
content = "注意前方驾校考试路段",
|
|
|
|
|
tts = "驾校考试路段,请小心驾驶"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_ROAD_HUMP_BRIDGE(
|
|
|
|
|
0x2C09.toString(),
|
|
|
|
|
"驼峰桥",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_hump_bridge,
|
|
|
|
|
content="注意前方驼峰桥",
|
|
|
|
|
tts="注意即将驶入驼峰桥,请小心驾驶"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_hump_bridge,
|
|
|
|
|
content = "注意前方驼峰桥",
|
|
|
|
|
tts = "注意即将驶入驼峰桥,请小心驾驶"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_ROAD_NO_PARKING(
|
|
|
|
|
0x2C10.toString(),
|
|
|
|
|
"禁止停车",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_no_parking,
|
|
|
|
|
content="注意当前路段禁止停车",
|
|
|
|
|
tts="当前路段,禁止停车"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_no_parking,
|
|
|
|
|
content = "注意当前路段禁止停车",
|
|
|
|
|
tts = "当前路段,禁止停车"
|
|
|
|
|
),
|
|
|
|
|
TYPE_USECASE_ID_ROAD_GIVE_WAY(
|
|
|
|
|
0x2C11.toString(),
|
|
|
|
|
"减速慢行",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_give_way,
|
|
|
|
|
content="注意路况复杂,减速慢行",
|
|
|
|
|
tts="路况复杂,减速慢行"
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_give_way,
|
|
|
|
|
content = "注意路况复杂,减速慢行",
|
|
|
|
|
tts = "路况复杂,减速慢行"
|
|
|
|
|
),
|
|
|
|
|
TYPE_ERROR(
|
|
|
|
|
ObuConstants.USE_CASE_ID.ERROR.toString(),
|
|
|
|
|
"未知/错误/异常",
|
|
|
|
|
poiTypeSrcVr=R.drawable.icon_warning_v2x_abnormal_vehicle,
|
|
|
|
|
content="",
|
|
|
|
|
tts=""
|
|
|
|
|
);
|
|
|
|
|
poiTypeSrcVr = R.drawable.icon_warning_v2x_abnormal_vehicle,
|
|
|
|
|
content = "",
|
|
|
|
|
tts = ""
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
TYPE_VIP_IDENTIFICATION("10022", "", "", R.drawable.icon_warning_v2x_vip_turn_light, "VIP车辆优先通行", "已为您变灯,请优先通行");
|
|
|
|
|
|
|
|
|
|
companion object {
|
|
|
|
|
@JvmStatic
|
|
|
|
|
@@ -541,12 +567,12 @@ enum class EventTypeEnum(
|
|
|
|
|
FOURS_PONDING.poiType -> FOURS_PONDING.tts
|
|
|
|
|
FOURS_FOG.poiType -> FOURS_FOG.tts
|
|
|
|
|
FOURS_ICE.poiType -> FOURS_ICE.tts
|
|
|
|
|
FOURS_ACCIDENT.poiType, FOURS_ACCIDENT_01.poiType, FOURS_ACCIDENT_02.poiType,
|
|
|
|
|
FOURS_ACCIDENT.poiType, FOURS_ACCIDENT_01.poiType, FOURS_ACCIDENT_02.poiType,
|
|
|
|
|
FOURS_ACCIDENT_03.poiType, FOURS_ACCIDENT_04.poiType, FOURS_ACCIDENT_05.poiType -> FOURS_ACCIDENT.tts
|
|
|
|
|
else -> "道路事件"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@JvmStatic
|
|
|
|
|
fun getTtsWithFeedback(poiType: String?): String {
|
|
|
|
|
return when (poiType) {
|
|
|
|
|
@@ -564,7 +590,7 @@ enum class EventTypeEnum(
|
|
|
|
|
else -> "道路事件"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@JvmStatic
|
|
|
|
|
fun getAlarmContent(poiType: String?): String {
|
|
|
|
|
return when (poiType) {
|
|
|
|
|
@@ -634,7 +660,7 @@ enum class EventTypeEnum(
|
|
|
|
|
else -> "实时路况"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@JvmStatic
|
|
|
|
|
fun getMarker3DRes(poiType: String?): Int {
|
|
|
|
|
return when (poiType) {
|
|
|
|
|
@@ -649,7 +675,7 @@ enum class EventTypeEnum(
|
|
|
|
|
else -> 0
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@JvmStatic
|
|
|
|
|
fun getTypeNameTTS(type: String?): String {
|
|
|
|
|
return when (type) {
|
|
|
|
|
@@ -665,7 +691,7 @@ enum class EventTypeEnum(
|
|
|
|
|
else -> "实时路况"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@JvmStatic
|
|
|
|
|
fun getUpdateIconRes(poiType: String?): Int {
|
|
|
|
|
return when (poiType) {
|
|
|
|
|
@@ -768,6 +794,7 @@ enum class EventTypeEnum(
|
|
|
|
|
TYPE_USECASE_ID_ROAD_HUMP_BRIDGE.poiType -> TYPE_USECASE_ID_ROAD_HUMP_BRIDGE.poiTypeSrcVr
|
|
|
|
|
TYPE_USECASE_ID_ROAD_NO_PARKING.poiType -> TYPE_USECASE_ID_ROAD_NO_PARKING.poiTypeSrcVr
|
|
|
|
|
TYPE_USECASE_ID_ROAD_GIVE_WAY.poiType -> TYPE_USECASE_ID_ROAD_GIVE_WAY.poiTypeSrcVr
|
|
|
|
|
TYPE_VIP_IDENTIFICATION.poiType -> TYPE_VIP_IDENTIFICATION.poiTypeSrcVr
|
|
|
|
|
TYPE_ERROR.poiType -> TYPE_ERROR.poiTypeSrcVr
|
|
|
|
|
else -> TYPE_ERROR.poiTypeSrcVr
|
|
|
|
|
}
|
|
|
|
|
@@ -806,6 +833,7 @@ enum class EventTypeEnum(
|
|
|
|
|
TYPE_USECASE_ID_ROAD_HUMP_BRIDGE.poiType -> TYPE_USECASE_ID_ROAD_HUMP_BRIDGE.content
|
|
|
|
|
TYPE_USECASE_ID_ROAD_NO_PARKING.poiType -> TYPE_USECASE_ID_ROAD_NO_PARKING.content
|
|
|
|
|
TYPE_USECASE_ID_ROAD_GIVE_WAY.poiType -> TYPE_USECASE_ID_ROAD_GIVE_WAY.content
|
|
|
|
|
TYPE_VIP_IDENTIFICATION.poiType -> TYPE_VIP_IDENTIFICATION.content
|
|
|
|
|
FOURS_ROAD_WORK.poiType -> FOURS_ROAD_WORK.content
|
|
|
|
|
TYPE_ERROR.poiType -> TYPE_ERROR.content
|
|
|
|
|
else -> TYPE_ERROR.content
|
|
|
|
|
@@ -845,6 +873,7 @@ enum class EventTypeEnum(
|
|
|
|
|
TYPE_USECASE_ID_ROAD_HUMP_BRIDGE.poiType -> TYPE_USECASE_ID_ROAD_HUMP_BRIDGE.tts
|
|
|
|
|
TYPE_USECASE_ID_ROAD_NO_PARKING.poiType -> TYPE_USECASE_ID_ROAD_NO_PARKING.tts
|
|
|
|
|
TYPE_USECASE_ID_ROAD_GIVE_WAY.poiType -> TYPE_USECASE_ID_ROAD_GIVE_WAY.tts
|
|
|
|
|
TYPE_VIP_IDENTIFICATION.poiType -> TYPE_VIP_IDENTIFICATION.tts
|
|
|
|
|
FOURS_ROAD_WORK.poiType -> FOURS_ROAD_WORK.tts
|
|
|
|
|
TYPE_ERROR.poiType -> TYPE_ERROR.tts
|
|
|
|
|
else -> TYPE_ERROR.tts
|
|
|
|
|
|