isNear static method

bool isNear(
  1. ILatLong me,
  2. ILatLong other
)

Returns true if the other point is equal or near this point.

Implementation

static bool isNear(ILatLong me, ILatLong other) {
  if (me.latitude == other.latitude && me.longitude == other.longitude) return true;
  if ((me.latitude - other.latitude).abs() <= 0.00005 && (me.longitude - other.longitude).abs() <= 0.00005) return true;
  return false;
}