Searching, please wait...

libhomeradar

easy collect aircraft information
~50,000,000 registered contacts
303894 unique aircraft records, 28.78% unresolved records
 ACARS DECODER Planespotting Network Kinetic Avionics AirNav Systems Airframes.org Atlas Tracking
libhomeradar - easy collect aircraft informations

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.


Yahoo! My Web  Google Bookmarks  Windows Live  Facebook  Ask  del.icio.us  Furl 
 

List of contacted aircrafts

libhomeradar always keeps a list of all unique contacted aircrafts per host in memory. If you have the database lookups enabled, this list will be in the following form:

ICAO24 CODE;AIRCRAFT REGISTRATION
ICAO24 CODE;AIRCRAFT REGISTRATION
...


without database lookups, the list is a simple list of ICAO24 codes.
This list is always available. There are two functions available to get the content or to clear the entire list.

/* Return a list of all contacted aircrafts on the given host
   Before the first call 'item' should be set to 0 
   Get the list in a while loop until NULL will be returned
*/
extern char *homeradar_unique_aircrafts(LHR handle, const int hostid, int *item);

With this function you'll get a list of all contacted aircrafts for this host. On the first call, the pointer to the integer (3rd parameter) should set to zero. This pointer will be used to identify the location within the list.
 
To get all items from the list, you can use the following code snippet:

  int e, i;
  char *s;

  /* Get all contacts from sbs1 */
  i = 0; e = homeradar_gethostbyname(H, "sbs1.libhomeradar.org");
  while ((s = homeradar_unique_aircrafts(H, e, &i))) printf("%s\n",s);

To remove all entries from the list, use the homeradar_clear_list(LHR H, int hostid) function. This function will remove all items from the aircraft list of the given host.

Currently it's not possible to set LHR_HOSTS_ALL to get the list from all hosts 
or to remove all items from all lists.
Distance calculation Docu
Table of contents
Using a translation table