Skip to content

Commit eb240ff

Browse files
committed
Add some documentation about special area linking case
1 parent 4af77ac commit eb240ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

application/src/main/java/org/opentripplanner/routing/linking/VertexLinker.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,9 @@ private boolean addAreaVertex(
656656
)
657657
.findFirst();
658658
if (!nearest.isPresent()) {
659+
/* This can happen when all (probably the single one) visibility points are very close
660+
to the linked vertex. Such situatin can arise in boarding location linking which skips
661+
the snapping logic of normal linking and calls addPermanentAreaVertex directly */
659662
nearest = areaGroup.visibilityVertices().stream().findFirst();
660663
}
661664
if (nearest.isPresent()) {

0 commit comments

Comments
 (0)