docs: @Pure
  	<CT extends RoadConnection> CT getNearestPoint(Class<CT> connectionClass, double x, double y) {
  		final int index = getNearestEndIndex(x, y);
  		if (index == 0) {
  			return getBeginPoint(connectionClass);
  		}
  		return getEndPoint(connectionClass);
  	}