private static final double WALKING_SPEED_METERS_PER_MS = 0.0011176;
@Test
public void test() {
CoordinatePoint center = new CoordinatePoint(47.653247216758494,
-122.30838775634766);
CoordinateBounds bounds = SphericalGeometryLibrary.bounds(center.getLat(),
center.getLon(), 400);
double latDelta = (bounds.getMaxLat() - bounds.getMinLat()) / 2;
double lonDelta = (bounds.getMaxLon() - bounds.getMinLon()) / 2;
System.out.println(latDelta);
TimedGridFactory factory = new TimedGridFactory(latDelta, lonDelta,
WALKING_SPEED_METERS_PER_MS);
factory.addPoint(center.getLat(), center.getLon(), 0, 300 * 1000);
System.out.println(WALKING_SPEED_METERS_PER_MS * 120 * 1000);
Map<Integer, List<EncodedPolygonBean>> polygonsByTime = factory.getPolygonsByTime(1);