In my country the law is that if there is a crosswalk within a certain distance, 25 meters if I recall, you have to use the crosswalk. Otherwise you are allowed to cross elsewhere after making sure the road is free.
(How do you know how long 25 meters is? Most trams in my city are 35 meters long, so if an entire tram platform is between the nearest crosswalk and you, it’s legal there.)
In my country the law is that if there is a crosswalk within a certain distance, 25 meters if I recall, you have to use the crosswalk. Otherwise you are allowed to cross elsewhere after making sure the road is free.
(How do you know how long 25 meters is? Most trams in my city are 35 meters long, so if an entire tram platform is between the nearest crosswalk and you, it’s legal there.)