It's not "just" distance, but also the size and number of hills you want to do will effect your choice of bike for the job. Gearing is just as much of a factor as weight, comfort, distance, etc. Unless you live in a really flat area- in which case a single speed is fine for everything.