Example #1
0
 public void testStopsInArea() {
   LinesMapFactory f = new LinesMapFactory();
   f.setMapLoader(new LinesMapTest.DumyComplexMapDBLoader());
   LinesMap map = f.loadMap("ttt");
   Stop[] stops = map.getStopsInArear(new Point((float) 32.773077, (float) 35.01240), 500, 500);
   assertTrue(stops.length == 10);
   stops = map.getStopsInArear(new Point((float) 32.773077, (float) 35.01240), 1500, 1500);
   assertTrue(stops.length == 12);
   stops = map.getStopsInArear(new Point((float) 32.773077, (float) 35.01240), 190, 190);
   assertTrue(stops.length == 4);
 }