The characters in the book match this genre a lot, like the Vogons and Zaphod beeblebrox. Arthur and Ford first met the Vogons when earth got destroyed and they were teleported onto a Vogon ship. Vogons found them and escorted them into a room, they left and locked the door behind them, then they opened the airlock and Arthur and Ford were sucked out into space. They met Zaphod when they got picked up randomly by the spaceship Heart of Gold while they were floating in space. In the book Arthur and Ford are mainly travelling in space and sometimes on planets just like Magrathea and Earth.