route_average_gradient function

Return average gradient across a route