Fix #5175
This commit is contained in:
parent
41cc9fcd3f
commit
d3ef4fb292
3 changed files with 9 additions and 3 deletions
|
@ -301,7 +301,8 @@ public class RoutePlannerFrontEnd {
|
|||
int py = MapUtils.get31TileNumberY(point.getLatitude());
|
||||
int pind = st ? routeSegmentResult.getStartPointIndex() : routeSegmentResult.getEndPointIndex();
|
||||
|
||||
RouteDataObject r = routeSegmentResult.getObject();
|
||||
RouteDataObject r = new RouteDataObject(routeSegmentResult.getObject());
|
||||
routeSegmentResult.setObject(r);
|
||||
QuadPoint before = null;
|
||||
QuadPoint after = null;
|
||||
if (pind > 0) {
|
||||
|
|
|
@ -394,7 +394,6 @@ public class RouteResultPreparation {
|
|||
}
|
||||
// reverse it just to attach good direction roads
|
||||
Collections.reverse(result);
|
||||
|
||||
segment = finalSegment.reverseWaySearch ? finalSegment.opposite.getParentRoute() : finalSegment;
|
||||
int parentSegmentEnd = finalSegment.reverseWaySearch ? finalSegment.opposite.getParentSegmentEnd() : finalSegment.opposite.getSegmentStart();
|
||||
parentRoutingTime = -1;
|
||||
|
|
|
@ -23,7 +23,7 @@ import gnu.trove.map.hash.TIntObjectHashMap;
|
|||
public class RouteSegmentResult implements StringExternalizable<RouteDataBundle> {
|
||||
// this should be bigger (50-80m) but tests need to be fixed first
|
||||
private static final float DIST_BEARING_DETECT = 5;
|
||||
private final RouteDataObject object;
|
||||
private RouteDataObject object;
|
||||
private int startPointIndex;
|
||||
private int endPointIndex;
|
||||
private List<RouteSegmentResult>[] attachedRoutes;
|
||||
|
@ -535,10 +535,16 @@ public class RouteSegmentResult implements StringExternalizable<RouteDataBundle>
|
|||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public void setObject(RouteDataObject r) {
|
||||
this.object = r;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return object.toString() + ": " + startPointIndex + "-" + endPointIndex;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in a new issue