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. |
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: /* 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.
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.
|
|||||