Optimal bus stop spacing

What&rsquo;s the ideal number of stops along a bus route? If there are too few, then people have to walk far to the nearest one. If there are too many, then the bus has to stop very often.