libhomeradareasy collect aircraft information |
4,653,601 registered contacts 57726 unique aircraft records, 9.31% 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. |
Export and import functions
Since version 1.005 libhomeradar has a lot of import functions and a new export function (write all contacts to disc as normal textfile). libhomeradar import functions
/* Set system to import only - no host is needed
Useful if you use libhomeradar as importer function
If you have no other input (SBS1 or RB), then you'll
need this function to handle imported data from the
import functions above.
*/
extern int homeradar_without_hosts(LHR handle);
/*
Enable import functions of libhomeradar
Without this option none of the following import functions will work
*/
extern void homeradar_enable_import(LHR handle);
/*
This import functions reads a normal semicolon separated string
in libhomeradar format into the internal queue
Field definition of the string
ICAO24 Address;
Callsign;
New Contact; (possible values are 0 or 1) (*)
GPS position (LAT); (*)
GPS position (LON); (*)
Flightlevel; (*)
Squawk; (*)
Messagetype; (*)
Date of contact (format: YYYY/MM/DD);
Time of contact (format: HH:MM:SS);
Aircraft registration;
Aircraft manufacturer; (**)
Aircraft model; (**)
Aircraft details; (**)
Aircraft construction number; (**)
Flightnumber;
Routing; (*)
Airline; (**)
Airlines IATA code; (**)
Airlines ICAO code (**)
(*) = can be empty or 0
(**) = if empty, will be resolved by libhomeradar
*/
extern int homeradar_import_by_string(LHR handle, const char *str);
/*
ContactImport reads a standard LHR_CONTACT structure and will send
this structure to the normal working loop of libhomeradar.
With this function you can bind other sources to libhomeradar
Function returns TRUE (1) on success, -1 on error or FALSE (0) if
the item could not be inserted
*/
extern int homeradar_import_by_struct(LHR handle, const LHR_CONTACT *C);
/* Import data source by given values
All values must be initialized. If one of the values is NULL, the
the import will not start.
This function returns TRUE (1) on success or FALSE (0) if import failed.
-1 will returned in case of errors
*/
extern int homeradar_import_by_data(LHR handle, const char *addr, const char *reg, const char *callsign,
const char *flightnumber, const time_t contacted,
const double LAT, const double LON);
/* Read from disc will read a prev. created textfile with the 'homeradar_dump2disc' function
The parameter 'file' is the complete path (incl. filename) to the dumpfile
Function returns how many lines are read or -1 on error */
extern int homeradar_readfromdisc(LHR handle, const char *file, const int type, const int hostid);
|
|||||