I’m thinking in the U.S. and Canada. For example, if you’re on vacation, you’ve checked out of your hotel room and have several hours until your flight, and you have some cans of beer left over. I know you could sneakily drink them in a park or something, but I’m just curious if there’s any way to do it that’s legal.
It really depends on the town/city. Just drink it mostly wherever you want, just do it in a reasonable way.
I’ve sat on city park picnic tables drinking beers where it’s technically not permitted. Or at beaches where it is (just no glass).
The only time I’ve ever had an issue was in a college town where cops were dicks (decades ago).
Actually, many parks do allow drinking. If you check the cities bylaws, they often state explicit locations where open containers are allowed and it often tends to be the major town parks.