Here is a map that retraces Jack Kerouac's travels across the US:
In Red is the first trip he took from1947 to 1948
In Blue is his second trip, in 1949
In Red is his final trip, in 1950
He wrote the book very soon after his last trip, but only got published in 1957.