libhomeradareasy collect aircraft information |
4,655,934 registered contacts 57729 unique aircraft records, 9.32% unresolved records |
| ACARS DECODER Planespotting Network Kinetic Avionics AirNav Systems Airframes.org | ||||||
| Home Docu Examples Functions Downloads Database Search Online API Success Stories News Imprint / Contact | ||||||
![]() libhomeradar is an easy to use library for all type of programming language which can use libraries. libhomeradar can connect to different sources to collect aircraft informations arround the world with extended informations, powerful filtering and structured data access. libhomeradar is written in C and is available for Linux and Windows (2003, XP, NT, Vista). Currently libhomeradar works with the Kinetic Avionics SBS-1 base station and the Airnav Systems Radarbox. |
Distance calculation
libhomeradar can help you calculating the distance between departure and arrival airport, between your position and the aircraft, between aircraft and departure (or arrival) airport. See also our example #11 Distance calculation functions
/* Get distance in kilometers between fixed point (LAT/LON) and aircraft at (ac_LAT/ac_LON) */
extern double homeradar_distance(const double LAT, const double LON,
const double ac_LAT, const double ac_LON);
/* Get distance from aircraft to a given airport
Airport must be send as IATA or ICAO code and databases must be loaded
Function returns -1 on error, 0 if airport coordinates are not available
and > 0 as distance in kilometers */
extern double homeradar_distance_to_airport(LHR handle, const char *airport,
const double LAT, const double LON);
/* Get distance in kilometers between two airports
This function will return -1 on error, 0 if not all coordinates are known
or the distance in kilometers */
extern double homeradar_distance_ap2ap(LHR handle, const char *from, const char *to);
These functions can be used to calculate the distance between every GPS point in kilometers.
It depends on your needs which function will be used. Database lookup must be enabled to use these functions
|
|||||