Interface EarthLocation

All Known Subinterfaces:
Station
All Known Implementing Classes:
EarthLocationImpl, StationImpl

public interface EarthLocation
A location on the earth, specified by lat, lon and optionally altitude.
Since:
Feb 18, 2008
  • Method Summary

    Modifier and Type
    Method
    Description
    create(double lat, double lon, double alt)
    Standard way to create an EarthLocation.
    double
    Returns the altitude in some unit.
    double
    Returns the latitude in some unit.
    Get the lat/lon location
    double
    Returns the longitude in some unit.
    boolean
    Are either lat or lon missing?
  • Method Details

    • create

      static EarthLocation create(double lat, double lon, double alt)
      Standard way to create an EarthLocation.
    • getLatitude

      double getLatitude()
      Returns the latitude in some unit. The unit is very likely decimal degrees north, but we don't enforce that anywhere.
      Returns:
      the latitude in some unit.
    • getLongitude

      double getLongitude()
      Returns the longitude in some unit. The unit is very likely decimal degrees east, but we don't enforce that anywhere.
      Returns:
      the longitude in some unit.
    • getAltitude

      double getAltitude()
      Returns the altitude in some unit.
      Returns:
      the altitude in some unit. A value of Double.NaN indicates "no altitude".
    • getLatLon

      LatLonPoint getLatLon()
      Get the lat/lon location
      Returns:
      lat/lon location
    • isMissing

      boolean isMissing()
      Are either lat or lon missing?
      Returns:
      true if lat or lon is missing