Skip to content

Commit

Permalink
refactor: Rename private variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Fendrich authored and MichaelsJP committed Mar 7, 2024
1 parent cc49380 commit 6edf66f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import static org.locationtech.jts.algorithm.hull.ConcaveHull.concaveHullByLength;

public abstract class AbstractIsochroneMapBuilder implements IsochroneMapBuilder {
private static final double MAX_SEGMENT_LENGTH = 0.18;// corresponds to 20000 m
private static final double MAX_SEGMENT_ANGLE = 0.18;// in degrees, corresponds to 20000 m
protected static final DistanceCalc dcFast = new DistancePlaneProjection();
protected GeometryFactory geometryFactory;
protected RouteSearchContext searchContext;
Expand Down Expand Up @@ -170,7 +170,7 @@ protected List<Coordinate> edgeToPoints(EdgeIteratorState iter, double minSplitL
lat1 = pl.getLat(i);
lon1 = pl.getLon(i);
addPoint(points, lon0, lat0);
splitLineSegment(lat0, lon0, lat1, lon1, points, minSplitLength, MAX_SEGMENT_LENGTH);
splitLineSegment(lat0, lon0, lat1, lon1, points, minSplitLength, MAX_SEGMENT_ANGLE);
lon0 = lon1;
lat0 = lat1;
}
Expand Down

0 comments on commit 6edf66f

Please sign in to comment.