The centre of Glasgow is roughly 2 hours away from St Andrews, probably even longer than that during the Open with the heavy traffic on the A91. Dundee, Edinburgh, Perth and Stirling are more likely venues for hotels for those going to the home of Golf, I would say.