I had very weird problems where I got errors of sort:
"The last stop of the route does not match the last way"
that cannot go away.
So, while debugging, it turns out that stopToWay in line
|
public static Map<PTStop, List<Way>> stopToWay = new HashMap<>(); |
is defined as static and is never cleared. So, when I move node where I want it to be (near last way),
stopToWay never get that information as it takes it from cache. Only way is to restart JOSM. So, to make my problem go away, I just dropped
stopToWay.clear(); in
StopToWayAssigner ctor and it works now. I guess this is not solution for PR, just a hack, but wanted to let you know here
I had very weird problems where I got errors of sort:
"The last stop of the route does not match the last way"
that cannot go away.
So, while debugging, it turns out that
stopToWayin linept_assistant/src/main/java/org/openstreetmap/josm/plugins/pt_assistant/utils/StopToWayAssigner.java
Line 38 in 494d8ad
stopToWaynever get that information as it takes it from cache. Only way is to restart JOSM. So, to make my problem go away, I just droppedstopToWay.clear();inStopToWayAssignerctor and it works now. I guess this is not solution for PR, just a hack, but wanted to let you know here