Haven’t experienced Shanghai personally but ten years ago in Xi’an and Chengdu, yes, this sometimes was the only way to cross roads. In Jakarta and Bangkok, however, this
always is the only way. Compared to those cities, however, the traffic in Chinese cities I’ve seen was always very organized.
In Iranian cities, however …