|
@@ -327,6 +327,7 @@ public class GpsServiceImpl implements GpsService {
|
|
|
StationInfo endStation = stationInfoService.get(shiftInfo.getEndStationId());
|
|
|
|
|
|
boolean frontToEnd = true;
|
|
|
+ int distance = 100;
|
|
|
|
|
|
if (stationInfoList.size() > 0) {
|
|
|
if(endStation.getId().equals(stationInfoList.get(0).getId())){
|
|
@@ -343,7 +344,7 @@ public class GpsServiceImpl implements GpsService {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
- if(matchDistance(stationInfo,vehicleInfo,100)){
|
|
|
+ if(matchDistance(stationInfo,vehicleInfo,distance)){
|
|
|
currentStationId = stationInfo.getId();
|
|
|
break;
|
|
|
}
|
|
@@ -358,7 +359,7 @@ public class GpsServiceImpl implements GpsService {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
- if(matchDistance(stationInfo,vehicleInfo,100)){
|
|
|
+ if(matchDistance(stationInfo,vehicleInfo,distance)){
|
|
|
currentStationId = stationInfo.getId();
|
|
|
break;
|
|
|
}
|