A police officer who patrols the streets on foot (walks the beat)
A police officer who looks for evidence as part of solving a crime; an investigator.
A person employed to find information not otherwise available to the public.
Employed in detecting.