And how does the public know there is a datacenter inside a random building?
The local government would need to know, and that would come out in town meetings.
Browse Google Maps aerial view and look for the backup generators.
"That's not a datacenter. It's just a regular old building consuming 20+MW of electricity"
Either it's being proposed or other people tell them about them. It's not hard to find out where datacenters are.