car to checkpoint relative distance calculation