Tenaya Lodge at Yosemite is a good place to stay to see Yosemite Mountain Sugar Pine Railroad. It’s 1 mi away.