2 your elders and judges shall go out and measure the distance from the body to the neighboring towns.

Read Deuteronomy 21:2 Using Other Translations

Then thy elders and thy judges shall come forth, and they shall measure unto the cities which are round about him that is slain:
then your elders and your judges shall come out, and they shall measure the distance to the surrounding cities.
In such a case, your elders and judges must measure the distance from the site of the crime to the nearby towns.