[6.5.0] refactor: 通过公交站 线程优化;
This commit is contained in:
@@ -4,7 +4,7 @@ import com.zhidaoauto.map.data.point.LonLatPoint
|
||||
|
||||
data class BusStation(
|
||||
var busStationPoints: List<com.zhidaoauto.map.data.point.LonLatPoint>,
|
||||
var id: Int,
|
||||
var id: Long,
|
||||
var roadId: Int,
|
||||
var type: Int,
|
||||
var notifyTime: Long = -1,
|
||||
@@ -12,7 +12,11 @@ data class BusStation(
|
||||
) {
|
||||
|
||||
fun getBusStationId(): String {
|
||||
return "bus_station_${id}_${roadId}"
|
||||
//id=0 需要计算出一个唯一id
|
||||
val newId = getBusStationPoint()?.let {
|
||||
it.latitude + it.longitude
|
||||
} ?: 0
|
||||
return "bus_station_${newId}_${roadId}"
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user