The absence of road traffic and the relative newness of the buildings and gardens suggests that the photo was taken c1900 - 1910. As well as the building near the line on the right of the picture, the large building in the distance beyond and to the left of the loco looks quite distinctive. The loco seems to be putting in a bit of effort, judging by the amount of exhaust. Could it be working upgrade? Probably not that steep, as the surrounding terrain looks relatively flat. It is difficult to see how many wagons there are in the train, so tricky to get a feel for the load. It is also difficult to make out much of the loco, but it appears to be a tank engine working bunker first. It looks like it has side tanks rather than a saddle or panniers and also has a relatively modest sized dome. On that basis the location is presumably outwith the reach of Swindon.