legal codes governing operation of level crossing