It depends, there are 2 variants of the 31 bus which go in different directions once in the centre of Bonnyrigg. One stops outside the Calderwood pub which is about 3 seconds from the ground, the other stops near the shops in the middle of the town and is about 2 minutes from the ground.