Skip to content

Commit

Permalink
Finetune sidewalk naming
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Mar 26, 2024
1 parent a5e61d5 commit 3d0db80
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@ public void postprocess() {
.map(c -> {
var hausdorff = DiscreteHausdorffDistance.distance(
sidewalk.getGeometry(),
c.getGeometry(),0.5
c.getGeometry(),
0.5
);

var points = DistanceOp.nearestPoints( c.getGeometry(),sidewalk.getGeometry());
var points = DistanceOp.nearestPoints(c.getGeometry(), sidewalk.getGeometry());
double fastDistance = SphericalDistanceLibrary.fastDistance(points[0], points[1]);

return new EdgeWithDistance(hausdorff, fastDistance, candidates.size(), c, sidewalk);
Expand Down Expand Up @@ -114,7 +115,9 @@ void logDebugString() {
LOG.info("Distance: {}m", distance);
LOG.info("OSM: {}", osmUrl());
LOG.info("Debug client: {}", debugClientUrl());
LOG.info("<-------------------------------------------------------------------------------->");
LOG.info(
"<-------------------------------------------------------------------------------->"
);
}

String debugClientUrl() {
Expand Down

0 comments on commit 3d0db80

Please sign in to comment.