Leiji Matsumoto's anime 'Galaxy Express 999' - hugely popular in the 1970s and 1980s was heavily influenced by Kenji Miyazawa's novel 'Night on the Galactic Railroad' written around 1927.
Both works share the fantasy motif of traveling by train across the Milky Way, and 'Night on the Galactic Railroad' has inspired many later works.
'Galaxy Express 999' follows Tetsuro as he journeys to Andromeda to obtain a mechanical body, with each episode featuring a unique planet to explore.