Class AirportLocation

java.lang.Object
org.deltava.beans.navdata.NavigationDataBean
org.deltava.beans.navdata.AirportLocation
All Implemented Interfaces:
Serializable, Cloneable, Comparable<NavigationDataBean>, GeoLocation, GeospaceLocation, IconMapEntry, MapEntry, MarkerMapEntry, ICAOAirport, Cacheable

public class AirportLocation extends NavigationDataBean implements ICAOAirport
A class to store airport location data.
Since:
1.0
Version:
6.4
Author:
Luke
See Also:
  • Constructor Details

    • AirportLocation

      public AirportLocation(double lat, double lon)
      Creates a new Airport location object.
      Parameters:
      lat - the latitude in degrees
      lon - the longitude in degrees
    • AirportLocation

      public AirportLocation(Airport a)
      Creates a Airport location from an Airport bean.
      Parameters:
      a - the Airport bean
  • Method Details

    • getICAO

      public String getICAO()
      Returns the Airport's ICAO code.
      Specified by:
      getICAO in interface ICAOAirport
      Returns:
      the ICAO code
    • getAltitude

      public int getAltitude()
      Returns the Airport's altitude.
      Specified by:
      getAltitude in interface GeospaceLocation
      Returns:
      the altitude in feet above mean sea level
    • setAltitude

      public void setAltitude(int alt)
      Updates the Airport's altitude.
      Parameters:
      alt - the altitude in feet above mean sea level
      Throws:
      IllegalArgumentException - if alt invalid input: '<' -1500 or > 29000
    • getAirway

      public final String getAirway()
      Returns the airway code.
      Overrides:
      getAirway in class NavigationDataBean
      Returns:
      the airway code
    • getIconColor

      public String getIconColor()
      Return the default Google Maps icon color.
      Specified by:
      getIconColor in interface MarkerMapEntry
      Returns:
      MapEntry.GREEN
    • getPaletteCode

      public int getPaletteCode()
      Returns the Google Earth palette code.
      Specified by:
      getPaletteCode in interface IconMapEntry
      Returns:
      2
    • getIconCode

      public int getIconCode()
      Returns the Google Earth icon code.
      Specified by:
      getIconCode in interface IconMapEntry
      Returns:
      48
    • getInfoBox

      public String getInfoBox()
      Returns the default Google Maps infobox text.
      Specified by:
      getInfoBox in interface MapEntry
      Returns:
      an HTML String