Interchange stations are essential for a high-quality public transport system. Many passengers pass through a station during the course of a day and the time spent at a station has a large effect on their experience of the whole journey. In this study, we aim to improve the passenger experience at a bus terminal by minimizing the walking distances for all passengers. To this end, an integer linear optimization model which allocates bus lines to the stops of a bus terminal is presented. The model is tested in a numerical experiment using synthetic passenger data. Two alternative approaches, either randomly allocated or based on the number of non-transferring passengers, are used for comparisons. The average improvement in relation to the random allocation strategy is 13%, which shows that the allocation approach has potential. It is thus of interest to collect data from a real bus terminal to further explore the model and the potential benefits it can provide.