Years ago, I read a few books that dealt with railroad, by author Paul Theroux, pretty damn good.
The Great Railway Bazaar
The Old Patagonian Express
Riding The Iron Rooster
They were not "railfan" novels, but train travel played a major role in these
Still a couple of others of his I haven't read, but look interesting:
Ghost Train to the Eastern Star
Book Description
Thirty years after his classic The Great Railway Bazaar, Paul Theroux revisits Eastern Europe, Central Asia, India, China, Japan, and Siberia. Half a lifetime ago, Paul Theroux virtually invented the modern travel narrative by recounting his grand tour by train through Asia. In the three decades since, the world he recorded in that book has undergone phenomenal change. The Soviet Union has collapsed and China has risen; India booms while Burma smothers under dictatorship; Vietnam flourishes in the aftermath of the havoc America unleashed on it the last time Theroux passed through. And no one is better able to capture the texture, sights, smells, and sounds of that changing landscape than Paul Theroux. Theroux's odyssey takes him from Eastern Europe, still hung over from communism, through tense but thriving Turkey into the Caucasus, where Georgia limps back toward feudalism while its neighbor Azerbaijan revels in oil-fueled capitalism. Theroux is firsthand witness to it all, traveling as the locals do—by stifling train, rattletrap bus, illicit taxi, and mud-caked foot—encountering adventures only he could have: from the literary (sparring with the incisive Nobel laureate Orhan Pamuk) to the dissolute (surviving a week-long bender on the Trans-Siberian Railroad). And wherever he goes, from the European Union to the Pacific Rim and back, his omnivorous curiosity and unerring eye for detail never fail to inspire, enlighten, inform, and entertain.
- Amazon.com