shows the shortest distance as a tooltip