Adding the distance calculation function to the map.
Changed lat/lng from string to numbers.