Local authorities may, by ordinance, when they deem it necessary for the public safety, install official stop signs at public traveled railroad grade crossings on highways maintained by the respective authorities.