Interface GeospaceLocation
- All Superinterfaces:
GeoLocation
- All Known Subinterfaces:
ICAOAirport
- All Known Implementing Classes:
ACARSRouteEntry, Airport, AirportLocation, Airspace, FIR, FuzzyPosition, GeoPosition, MapRouteEntry, Pilot, PositionData, RadioPosition, RouteEntry, WindData, XARouteEntry
An interface to define three-dimensional GeoLocations.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Luke
-
Field Summary
Fields inherited from interface GeoLocation
ALL, DEGREE_FEET, DEGREE_MILES, FEET_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE, RADIAN_MILESModifier and TypeFieldDescriptionstatic final intFormat the Longitude and Latitude.static final doubleSize of a degree in feet.static final doubleSize of a degree in miles.static final intSize of a mile in feet.static final String[]Latitude directions.static final intFormat the Latitude only.static final String[]Longitude directions.static final intFormat the Longitude only.static final intRadius of the Earth in miles. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the altitude of the location above MSL.Methods inherited from interface GeoLocation
distanceFeet, distanceTo, getLatitude, getLongitudeModifier and TypeMethodDescriptiondefault intCalculates the distance between two points in feet.default intCalculates the distance between two GeoLocations.doubleReturns the latitude of this location.doubleReturns the longitude of this location.
-
Method Details
-
getAltitude
int getAltitude()Returns the altitude of the location above MSL.- Returns:
- the altitude in feet
-