adapt taginfo script to new configuration structure

This commit is contained in:
Sarah Hoffmann
2024-12-06 15:11:16 +01:00
parent 59bce26afe
commit e1e8182c72
2 changed files with 70 additions and 28 deletions

View File

@@ -40,12 +40,6 @@ if type(themepark) ~= 'table' then
themepark = nil
end
-- tables required for taginfo
module.TAGINFO_MAIN = {keys = {}, delete_tags = {}}
module.TAGINFO_NAME_KEYS = {}
module.TAGINFO_ADDRESS_KEYS = {}
-- The single place table.
local place_table_definition = {
name = "place",
@@ -904,4 +898,9 @@ function module.set_relation_types(data)
end
end
function module.get_taginfo()
return {main = MAIN_KEYS, name = NAMES, address = ADDRESS_TAGS}
end
return module