Explicitly set last_distance when transitioning to PARKING from WAITING.