Apparatus for determining the distance between vehicles