In the northern hemisphere, the sun shines from the south. Therefore, making the solar street lamps face south can ensure the longest illumination hours. And at an appropriate angle, the panel can receive as much energy as possible. Similarly, in the southern hemisphere, the solar panels should face north.
More reading: The Solar Panel for Street Lights: Which Is The Newest?