BUT in the lesson it states:-
In the following cases, you cannot use sur (on) in French, but you will instead use dans (in). Street Ils marchent dans la rue.
In the case of the street, we see the whole environment as 'the street' and you're situated in it.
It seems that avenue is treated differently to street, is there a reason for this?