What is the meaning of 沿う?

to run along (a river, railway, road, etc.), to line (the shore etc.)

to follow (rules, guidelines, etc.)

Source: wiktionary.org