(a) Except as provided in subsection (g) of this section, this section applies to:
(1) Every motor vehicle carrying a passenger for hire;
(2) Every school vehicle carrying any passenger;
(3) Every bus that is owned or operated by a church and carrying any passenger;
(4) Every vehicle carrying as cargo a flammable liquid or an explosive; and
(5) Every vehicle carrying hazardous materials of a type and quantity requiring placarding under federal hazardous materials regulations.
(b) If the driver of any vehicle described in subsection (a) of this section approaches a railroad grade crossing, the driver shall stop within 50 feet but not less than 15 feet from the nearest rail in the crossing.
(c) If the driver of any vehicle described in subsection (a) of this section approaches a railroad grade crossing, the driver, while stopped, shall listen and look in both directions along the track for any approaching or passing railroad train and for any signals indicating the approach or passage of a railroad train.
(d) If the driver of any vehicle described in subsection (a) of this section approaches a railroad grade crossing, the driver may not proceed until he can do so safely.
(e) If the driver of any vehicle described in subsection (a) of this section approaches a railroad grade crossing, the driver may proceed only in that gear of the vehicle in which it will be unnecessary to shift gears manually while passing through the crossing.
(f) If the driver of any vehicle described in subsection (a) of this section approaches a railroad grade crossing, the driver may not shift gears manually while passing over any track of the railroad.
(g) (1) This section does not apply to the vehicles described in subsection (a)(1), (4), and (5) of this section, at any railroad grade crossing in a business district or residential district.
(2) This section does not apply to school buses and church buses, as described in subsection (a)(2) and (3) of this section, at locations within Baltimore City where complying with the provision of this section would conflict with the existing traffic signal indications.
(3) This section does not apply to the vehicles described in subsection (a) of this section, at any railroad grade crossing with an exempt highway–rail grade crossing plaque.