Modifed the libpostal API to add an extra function libpostal_parser_print_features to toggle debugging info. Updated address_parser app to use the new function.

This commit is contained in:
AeroXuk
2017-11-27 19:20:37 +00:00
parent 69e0d5d963
commit 9090811826
6 changed files with 20 additions and 5 deletions

View File

@@ -49,6 +49,13 @@ address_parser_t *get_address_parser(void) {
return parser;
}
bool address_parser_print_features(bool print_features) {
if (parser == NULL) return false;
parser->options.print_features = print_features;
return true;
}
bool address_parser_save(address_parser_t *self, char *output_dir) {
if (self == NULL || output_dir == NULL) return false;