It’s illegal to take photos of private properties and government buildings where it is specifically prohibited. Otherwise, you can take pictures of the beach, city plazas, public parks, and other areas that are in the public.