if (atIntersection != null) {
// if so, the stop can be linked directly to all vertices at the intersection
if (edges.getScore() > distanceLibrary.distance(atIntersection.getCoordinate(), coordinate))
return Arrays.asList(atIntersection);
}
return getSplitterVertices(vertexLabel, edges.toEdgeList(), coordinate);
}
}
/**
* Given a bundle of parallel, coincident edges, find a vertex splitting the set of edges as close as