Commit 9ffc0df4c5db9c5f66b425001a79ce5678e9ba06

Authored by 王通
1 parent 20fd5896

1.加入导航点位信息接口(常规、绕改道)

src/main/java/com/bsth/server_rs/base_info/navigation/NavigationRestService.java
@@ -262,14 +262,14 @@ public class NavigationRestService implements InitializingBean { @@ -262,14 +262,14 @@ public class NavigationRestService implements InitializingBean {
262 points.addAll(sectionPoints); 262 points.addAll(sectionPoints);
263 } 263 }
264 } 264 }
265 - int i = 0;  
266 - for (;i < points.size();i++) { 265 + int i = points.size() - 1;
  266 + for (;i >= 0;i--) {
267 if (points.get(i).isStation()) { 267 if (points.get(i).isStation()) {
268 break; 268 break;
269 } 269 }
270 } 270 }
271 boolean isStart = false; 271 boolean isStart = false;
272 - for (int j = points.size() - 1;j >= i;j--) { 272 + for (int j = 0;j <= i;j++) {
273 Point point = points.get(j); 273 Point point = points.get(j);
274 if (isStart || point.isStation()) { 274 if (isStart || point.isStation()) {
275 isStart = true; 275 isStart = true;