I am using QGIS 3.
I am creating a topographic map using OSM data downloaded as shapefiles. Obviously of I put the railways layer under the roads layer, all railways show as passing under roads. Or if I put the rail layer on top, railways always show as passing over roads.
Is there a way to make roads, bridges and railways layer up correctly automatically: so that they go over or under as appropriate without my having to check and, where necessary force, each crossing to render correctly?