[doc] explain how to get taginfo database

Signed-off-by: Mateusz Konieczny <matkoniecz@gmail.com>

part of #4895
This commit is contained in:
Mateusz Konieczny 2023-04-13 16:34:20 +02:00 committed by Alexander Borsuk
parent 7b39850203
commit e610ff56c4

View file

@ -115,6 +115,12 @@ if __name__ == '__main__':
if len(sys.argv) < 2:
print('Calculates tag usage and categories stats, suggesting new types.')
print('Usage: {} <path_to_taginfo.db> [<path_to_omim_data>]'.format(sys.argv[0]))
print('To obtain taginfo files visit https://taginfo.openstreetmap.org/download')
print('On Linux you can obtain this files by following operations')
print('wget https://taginfo.openstreetmap.org/download/taginfo-db.db.bz2')
print('wget https://taginfo.openstreetmap.org/download/taginfo-wiki.db.bz2')
print('bzip2 -dk taginfo-wiki.db.bz2')
print('bzip2 -dk taginfo-db.db.bz2')
sys.exit(1)
data_path = sys.argv[2] if len(sys.argv) >= 3 else os.path.join(os.path.dirname(sys.argv[0]), '..', '..', '..', 'data')