Actually, the vending machines in my work place are those types that make coffee from the beans. It grinds them and makes a coffee in pretty much the same way as we would at home.
It's still not as good as one from a bar, but it is drinkable, unlike those Instant type coffee that they serve on a train.