Dashiell Hammett worked as a detective in San Francisco, and included his experiences in that setting in his fiction including 'The Maltese Falcon'.