Parses AIS raw data to either text files or postgres database