Examples of CoordinateBounds


Examples of org.onebusaway.geospatial.model.CoordinateBounds

  @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);
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.