Home | History | Annotate | Download | only in data

Lines Matching refs:Location

22  * Encapsulate latitude and longitude into a single location object.
24 * TODO: Add tests. Consider removing "ZERO" location and using UNKNOWN.
26 public final class Location {
27 public static final Location UNKNOWN = new Location(Double.NaN, Double.NaN);
28 public static final Location ZERO = new Location(0.0, 0.0);
33 private Location(double latitude, double longitude) {
59 return "Location: " + getLocationString();
71 Location location = (Location) o;
73 if (Double.compare(location.mLatitude, mLatitude) != 0) {
76 if (Double.compare(location.mLongitude, mLongitude) != 0) {
94 public static Location from(double latitude, double longitude) {
101 return new Location(latitude, longitude);