fix bug
This commit is contained in:
@@ -11,10 +11,11 @@ class RoadArrow {
|
||||
private const val TURN_LEFT = 205 //左转
|
||||
private const val TURN_LEFT_OR_U_TURN = 206 //左转或转向
|
||||
private const val TURN_RIGHT = 206 //右转
|
||||
private const val TURN_LEFT_OR_RIGHT = 210 //左右转向
|
||||
const val U_TURN = 211 //转向
|
||||
|
||||
fun isLeft(arrowId: Int): Boolean {
|
||||
return arrowId == STRAIGHT_OR_LEFT || arrowId == TURN_LEFT || arrowId == TURN_LEFT_OR_U_TURN
|
||||
return arrowId == STRAIGHT_OR_LEFT || arrowId == TURN_LEFT || arrowId == TURN_LEFT_OR_U_TURN || arrowId == TURN_LEFT_OR_RIGHT
|
||||
}
|
||||
|
||||
fun isStraight(arrowId: Int): Boolean {
|
||||
@@ -22,7 +23,7 @@ class RoadArrow {
|
||||
}
|
||||
|
||||
fun isRight(arrowId: Int): Boolean {
|
||||
return arrowId == TURN_RIGHT || arrowId == STRAIGHT_OR_RIGHT
|
||||
return arrowId == TURN_RIGHT || arrowId == STRAIGHT_OR_RIGHT || arrowId == TURN_LEFT_OR_RIGHT
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@ package com.mogo.eagle.core.data.trafficlight
|
||||
* distance : 当前车道需驶入到距离终点距离
|
||||
* baseLaneInfoList : 驶入路口需要经过路段
|
||||
*/
|
||||
class RoadIDResult(
|
||||
val rSCrossId: String,
|
||||
data class RoadIDResult(
|
||||
val rsCrossId: String,
|
||||
val crossId: String,
|
||||
val distance: Double,
|
||||
val baseLaneInfoList: BaseLaneInfoList
|
||||
val baseLaneInfoList: List<BaseLaneInfoList>
|
||||
) {
|
||||
}
|
||||
Reference in New Issue
Block a user