Updating distance and duration in Segmment