LayoverLocation implements Serializable { public boolean includesLocation(CoordinatePoint location) { return _centroid.getDistance(location) <= MAX_LAYOVER_CLUSTER_DISTANCE_M; } LayoverLocation(PausedLocation pausedLocation);  LayoverLocation(CoordinatePoint centroid, Date lastUpdateTime,
      int samples); CoordinatePoint getCentroid(); int getSamples(); boolean isSignificant(); boolean isStale(long t); boolean includesLocation(CoordinatePoint location); void update(CoordinatePoint location, Date updateTime);  }
@Test public void testIncludesLocation() { LayoverLocation location = new LayoverLocation( point(47.668523, -122.290170), mins(10), 1); assertTrue(location.includesLocation(point(47.668523, -122.290170))); assertTrue(location.includesLocation(point(47.668538, -122.288475))); assertFalse(location.includesLocation(point(47.668509, -122.287112))); assertFalse(location.includesLocation(point(47.668538, -122.284827))); }