update average velocity on segments