*/
public static WayView getNearestWayInVicinity(AbstractView<?> view, GraphController controller, Point2D scrolledLocalPoint){
List<WayView> views = getWaysInVicinity(view, controller, scrolledLocalPoint);
double nearestDistance = 2 * view.getVicinity();
double currentDistance = 0;
WayView nearestWay = null;
for (WayView way : views){
for (EdgeModel edge : way.getEdges()){
Point2D from = edge.getFromNode().getPosition().projected();
Point2D to = edge.getToNode().getPosition().projected();
currentDistance = Geometry.getClosestDistance(new Line2D.Double(from, to), scrolledLocalPoint);