mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-13 17:05:37 -04:00
Added country to AIS app, so you know from which country a vessel is.
It's using the MID database, which is also part of the PR. mids.db should be placed in /AIS folder on SD card.
This commit is contained in:
parent
68d40ebce8
commit
be0427889f
9 changed files with 403 additions and 2 deletions
|
@ -27,6 +27,16 @@
|
|||
|
||||
namespace std {
|
||||
|
||||
int database::retrieve_mid_record(MidDBRecord* record, std::string search_term){
|
||||
|
||||
file_path = "AIS/mids.db";
|
||||
index_item_length = 4;
|
||||
record_length = 32;
|
||||
|
||||
result = std::database::retrieve_record(file_path, index_item_length, record_length, record, search_term);
|
||||
|
||||
return(result);
|
||||
}
|
||||
|
||||
int database::retrieve_airline_record(AirlinesDBRecord* record, std::string search_term){
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue