I think it's the same rule over here in the UK on some roads and particularly at night. http://www.highwaycode.gov.uk/22.htm#222

As you've unfortunately found out, it's always best to park the way of the traffic, just in case.