Fetching details from the dictionary...

to run along; to run beside; to stick to (a line)
to follow (a policy, plan, etc.); to act in accordance with; to align with
to meet (wishes, expectations, etc.); to satisfy; to comply with; to live up to
川沿いの道を歩いて帰りました。
I walked home along the road by the river.
ご希望に沿うように努力します。
I will try to meet your wishes.
線路に沿って走る電車が見えた。
I saw a train running along the railway.