Suppose the Pastor happened to have his I.D. on him and showed this to the officer. The cop would then know his name and possibly his address.
But that does not mean the cop would have accepted his presence at that house.
Check out these cases:
Black father and son viewing a home with real estate agent, encounter cops:
Cops in Wyoming, Michigan, are backpedaling after handcuffing two African-American men and a 15-year-old African-American teen for touring a house for sale.
nypost.com
Black gourmet lemonade shop owner gets police visit
A San Francisco lemonade business owner is blaming racism for a call to police that saw him questioned outside his own store on suspicion of burgling it.
www.cnn.com
The bottom line is that a Black person, especially a man, will likely have cops called on them just for owning a late model car, living in a nice neighborhood or owning a business.