/** * Estimates the remaining travel cost from fromNode to toNode using the euclidean distance between them. * * @param fromNode The first node. * @param toNode The second node. * @return The travel cost when traveling between the two given nodes. */ protected double estimateRemainingTravelCost(final Node fromNode, final Node toNode) { double dist = CoordUtils.calcEuclideanDistance(fromNode.getCoord(), toNode.getCoord()) * getMinTravelCostPerLength(); return dist * this.overdoFactor; }