RawStanoxNode toStanoxNode, double distance) {
double maxTime = (distance * 1.5 /* meters */) / (50 /* m/s */);
Min<BerthPath> minPath = new Min<RawGraph.BerthPath>();
for (RawBerthNode fromNode : fromStanoxNode.getBerthConnections()) {
for (RawBerthNode toNode : toStanoxNode.getBerthConnections()) {
BerthPath path = _graph.getShortestPath(fromNode, toNode, maxTime);
if (path != null) {
minPath.add(path.distance, path);
}
}
}