Permalink
Browse files

maybe fix bug (reported by Andrew Byrd) where many stops were not linked

  • Loading branch information...
1 parent 75483ae commit e820de45c39f0b35552ee62904a886f065e3a7ec David Turner committed Aug 7, 2011
@@ -410,6 +410,10 @@ public Vertex getClosestVertex(final Coordinate coordinate, TraverseOptions opti
Geometry eg = e.getGeometry();
if (eg != null) {
double distance = eg.distance(p);
+ if (nearTransitBonus && edgesNearTransit.contains(e)) {
+ //edges near transit are considered closer, causing preferential snapping.
+ distance /= 2;
+ }
if (distance <= bestDistance + DISTANCE_ERROR) {

0 comments on commit e820de4

Please sign in to comment.