[distance]
[当前位置是否可启动自驾]
This commit is contained in:
yangyakun
2023-09-04 14:55:53 +08:00
parent d51184be39
commit bb306ce83e
3 changed files with 117 additions and 77 deletions

View File

@@ -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()