Green’s Dictionary of Slang

bogey n.1

also bogie, bogy
[f. bogie, the devil; play on this devilishness]

1. [mid-19C+] a landlord.

2. [late 19C] (UK und.) an excise man, a customs officer.

3. [1920s] an informer.

4. [1920s+] a police officer, a detective.

5. [1990s] (US) a police car.

In compounds

straight bogey (n.) (also straight bogy) [straight adj.1 (10) ]

[1900s–30s] (UK Und.) a corrupt policeman.