public static OCGeoMath getRange(double lat, double lon, double dist) { double[][] result = new double[2][]; double[] min = new double[2]; double[] max = new double[2]; min = newLocation(lat, lon, dist, -45); max = newLocation(lat, lon, dist, 135); OCGeoMath geo = new OCGeoMath(); geo.lowerLat = max[0]; geo.upperLat = min[0]; geo.lowerLong = min[1]; geo.upperLong = max[1]; return geo; }
public static OCGeoMath getRange(double lat, double lon, double dist) { double[][] result = new double[2][]; double[] min = new double[2]; double[] max = new double[2]; min = newLocation(lat, lon, dist, -45); max = newLocation(lat, lon, dist, 135); OCGeoMath geo = new OCGeoMath(); geo.lowerLat = max[0]; geo.upperLat = min[0]; geo.lowerLong = min[1]; geo.upperLong = max[1]; return(geo); }