[6.0.0]
[distance] [当前位置是否可启动自驾]
This commit is contained in:
@@ -50,7 +50,7 @@ object DebugDataDispatch {
|
||||
when (type) {
|
||||
globalPathMock -> {
|
||||
sourceFilePath?.let {
|
||||
loadRawPoints(ROOT_PATH+it)
|
||||
loadRawPoints(ROOT_PATH+it,it)
|
||||
}
|
||||
}
|
||||
locationMock -> {
|
||||
@@ -112,7 +112,7 @@ object DebugDataDispatch {
|
||||
}
|
||||
}
|
||||
|
||||
fun loadRawPoints(path:String) {
|
||||
fun loadRawPoints(path:String,name:String) {
|
||||
val inputStream = FileInputStream(path)
|
||||
val reader = BufferedReader(InputStreamReader(inputStream))
|
||||
val jsonStr = StringBuilder()
|
||||
@@ -136,6 +136,11 @@ object DebugDataDispatch {
|
||||
locationBuilder.longitude = latLng.longitude
|
||||
newBuilder.addWayPoints(locationBuilder)
|
||||
}
|
||||
try {
|
||||
newBuilder.lineId = name.toLong()
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
|
||||
val mogoLocation = MogoLocation()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user