As to both photos, for some years including the 1940's double-end cars were painted as shown, so that as far as the passengers were concerned, orange meant "enter rear" and green meant "enter front." I don't know when that practice was discontinued*. As to the second photo, Route 37 ran from Juniper St. in the trolley subway (at least at one time) via Woodland Ave. and Island Ave., then the present 36 to Eastwick and beyond to Chester, some on private r/w and some street running. The PRR trackage to the left indicates that this was somewhere south of where it crossed over or under the PRR between Eastwick and Essington, where it ran on the Industrial Highway. I don't know where the double track ended.
* Montreal is the only other city I know of that did that, with green indicating enter rear and cream enter front; by the end I believe all cars were cream.