checking distance on compared routes