Examples of addBounds()


Examples of org.onebusaway.geospatial.grid.GridFactory.addBounds()

      remainingWalkingDistance = Math.min(remainingWalkingDistance,
          maxWalkDistance);

      CoordinateBounds bounds = SphericalGeometryLibrary.bounds(stopLat,
          stopLon, remainingWalkingDistance);
      gridFactory.addBounds(bounds);

      long remainingWalkingTime = (long) (remainingWalkingDistance / walkingVelocity);
      if (remainingWalkingTime > 0)
        timedGridFactory.addPoint(stopLat, stopLon, duration,
            remainingWalkingTime);
View Full Code Here

Examples of org.onebusaway.geospatial.model.CoordinateBounds.addBounds()

  }

  @Test
  public void testAddBounds() {
    CoordinateBounds bounds = new CoordinateBounds();
    bounds.addBounds(new CoordinateBounds(1,2,3,4));
    assertEquals(1, bounds.getMinLat(), 0);
    assertEquals(2, bounds.getMinLon(), 0);
    assertEquals(3, bounds.getMaxLat(), 0);
    assertEquals(4, bounds.getMaxLon(), 0);
    bounds.addBounds(new CoordinateBounds(0,3,2,5));
View Full Code Here

Examples of org.onebusaway.geospatial.model.CoordinateBounds.addBounds()

    bounds.addBounds(new CoordinateBounds(1,2,3,4));
    assertEquals(1, bounds.getMinLat(), 0);
    assertEquals(2, bounds.getMinLon(), 0);
    assertEquals(3, bounds.getMaxLat(), 0);
    assertEquals(4, bounds.getMaxLon(), 0);
    bounds.addBounds(new CoordinateBounds(0,3,2,5));
    assertEquals(0, bounds.getMinLat(), 0);
    assertEquals(2, bounds.getMinLon(), 0);
    assertEquals(3, bounds.getMaxLat(), 0);
    assertEquals(5, bounds.getMaxLon(), 0);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.