As a preposition, along means ‘in a line next to something long and thin’, e.g. a road, a path:
There were lots of shops along the main street.
I saw three different boats along the bank of the river.
We use along as an adverb with verbs of motion meaning ‘together with’:
Why don’t you come along with us to the party?
They said they’d bring the bikes along and we can ride to the swimming pool.