def distance_to(other)
      dlat = to_radians(other.lat - lat)
      dlon = to_radians(other.lng - lng)
      a = Math.sin(dlat / 2) * Math.sin(dlat / 2) +
          Math.cos(to_radians(lat)) * Math.cos(to_radians(other.lat)) *
          Math.sin(dlon / 2) * Math.sin(dlon / 2)
      c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a))
      6371 * c * 1000
    end
def distance_to(other)
      dlat = to_radians(other.lat - lat)
      dlon = to_radians(other.lng - lng)
      a = Math.sin(dlat / 2) * Math.sin(dlat / 2) +
          Math.cos(to_radians(lat)) * Math.cos(to_radians(other.lat)) *
          Math.sin(dlon / 2) * Math.sin(dlon / 2)
      c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a))
      6371 * c * 1000
    end
Calculate the distance in meters betwen the object
 and another location using the 'Haversine' formula.
 Params :
 +other+:: Location