I don't see any similarity between the sentences. In the first one, people are walking, so there is no personification of the road. In the second, the branches are moving, and the personification comes from the 'in response' part as it suggests that the branches are deliberately reacting to the wind, rather than just being blown around by it (which is really happening).
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.