I don't recall exact details but I recall reading quite a bit a while ago about how the police can define place or situation or something as a time/place that one is not allowed to photograph, apparently on whim. Various professional photographers were getting caught.
But if, as you say, the objection was photographing while driving, well hardly surprising then. You can get pulled over for using one hand to put a choc bar in your mouth these days. So if something that petty can catch you out, taking a photograph, something that needs concentration, is a sure fire 'no no'.
As for naming & shaming perps, I think it works better in small communities where the offence is recalled and everyone knows the individual, and so folk don't wish to attract that sort of rep. But in a large community, it's likely to just cause resentment of authority and so not a good plan IMO.