Merge branch 'dev_robobus-d_241202_6.8.4' into dev_robobus-d_241202_6.8.4_autopilot

This commit is contained in:
xyz
2024-12-31 14:51:17 +08:00

View File

@@ -757,7 +757,28 @@ public class OrderModel {
*/
private void updateBusStatus(BusRoutesResult result) {
if (result == null) return;
LineManager.INSTANCE.setContraiInfo(new ContraiInfo(result.getLineId(),result.csvFileUrl,result.csvFileMd5,result.txtFileUrl,result.txtFileMd5,result.contrailSaveTime,null,null,1));
if(result.csvFileUrl==null){
result.csvFileUrl = "";
}
if(result.csvFileMd5==null){
result.csvFileMd5 = "";
}
if(result.txtFileUrl==null){
result.txtFileUrl = "";
}
if(result.txtFileMd5==null){
result.txtFileMd5 = "";
}
LineManager.INSTANCE.setContraiInfo(new ContraiInfo(
result.getLineId(),
result.csvFileUrl,
result.csvFileMd5,
result.txtFileUrl,
result.txtFileMd5,
result.contrailSaveTime,
null,
null,
1));
busRoutesResult = result;
stationList.clear();
stationList.addAll(result.getSites());
@@ -1119,16 +1140,18 @@ public class OrderModel {
}
public void setTrajectoryStation(BusStationBean startStation, BusStationBean endStation, Long lineId) {
LineManager.INSTANCE.setStartAndEndStation(startStation,endStation);
MogoLocation startStationMogoLocation = new MogoLocation();
startStationMogoLocation.setLongitude(startStation.getGcjLon());
startStationMogoLocation.setLatitude(startStation.getGcjLat());
MogoLocation endStationMogoLocation = new MogoLocation();
endStationMogoLocation.setLongitude(endStation.getGcjLon());
endStationMogoLocation.setLatitude(endStation.getGcjLat());
TrajectoryAndDistanceManager.INSTANCE.setStationPoint(startStationMogoLocation, endStationMogoLocation, lineId);
if(startStation==null||endStation==null){
TrajectoryAndDistanceManager.INSTANCE.setStationPoint(null, null, lineId);
}else {
MogoLocation startStationMogoLocation = new MogoLocation();
startStationMogoLocation.setLongitude(startStation.getGcjLon());
startStationMogoLocation.setLatitude(startStation.getGcjLat());
MogoLocation endStationMogoLocation = new MogoLocation();
endStationMogoLocation.setLongitude(endStation.getGcjLon());
endStationMogoLocation.setLatitude(endStation.getGcjLat());
TrajectoryAndDistanceManager.INSTANCE.setStationPoint(startStationMogoLocation, endStationMogoLocation, lineId);
}
}
}