|
@@ -329,7 +329,7 @@ public class GpsServiceImpl implements GpsService {
|
|
|
StationInfo endStation = stationInfoService.get(shiftInfo.getEndStationId());
|
|
|
|
|
|
boolean frontToEnd = true;
|
|
|
- int maxPassStation = stationInfoList.size() - 1; //一次性最多查n-1个站点,避免环形
|
|
|
+ int maxPassStation = stationInfoList.size() - 2; //一次性最多查n-2个站点,避免环形
|
|
|
// int distance = 100;
|
|
|
|
|
|
if (stationInfoList.size() > 0) {
|