Distance is the length (in tiles) between two positions on the map. It is calculated as a Euclidean distance.