Added function getDistances to MapUtility