diff --git a/OSMDatastructure/TagManager.cs b/OSMDatastructure/TagManager.cs index 0c10132..91eb4c4 100644 --- a/OSMDatastructure/TagManager.cs +++ b/OSMDatastructure/TagManager.cs @@ -33,6 +33,13 @@ public class TagManager } } + public void AddTag(ulong wayId, KeyValuePair keyValuePair) + { + if(!wayTags.ContainsKey(wayId)) + wayTags.Add(wayId, new HashSet()); + wayTags[wayId].Add(new Tag(keyValuePair.Key, keyValuePair.Value)); + } + public HashSet? GetTagsForWayId(ulong wayId) { return wayTags.TryGetValue(wayId, out HashSet? value) ? value : null;