The Maltese Falcon is one of two books set in San Francisco on my list, along with The Joy Luck Club. You need to be in San Francisco to see how this small city moves, and reading books set there seems like the next best thing.
Dashiell Hammett’s Sam Spade is the private detective most others are modeled after, so this is also a good introduction to the genre.

