Presumably self-driving buses would be cheaper still!
One way to adapt the k-means algorithm to this would be to add a “regularizing” or penalizing term proportional to the number of cars needed to be deployed — you can think of this as the cost per car.