preposition
BAD : Walking along the city after dark is not a good idea.
GOOD : Walking through the city after dark is not a good idea.
◆◆◆
along = (moving) next to the side of something long such as a road or river: 'We walked along the Thames as far as Hampton Court.'
through = from one side of an area to another: 'The road goes through all the major towns.'