From 428fcb9bf8e2b8f645ecd2ad05ff06b123e7cfec Mon Sep 17 00:00:00 2001 From: glax Date: Mon, 10 Apr 2023 01:33:07 +0200 Subject: [PATCH] fixed return type for tagtypes name, tagref --- OSMDatastructure/Tag.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OSMDatastructure/Tag.cs b/OSMDatastructure/Tag.cs index 3230358..00eed3b 100644 --- a/OSMDatastructure/Tag.cs +++ b/OSMDatastructure/Tag.cs @@ -30,6 +30,10 @@ public class Tag case TagType.id: this.value = value.GetUInt64(); break; + case TagType.name: + case TagType.tagref: + this.value = value.GetString(); + break; default: this.value = value; break; @@ -123,7 +127,7 @@ public class Tag { WayType.living_street, 10 }, { WayType.service, 1 }, { WayType.pedestrian, 0 }, - { WayType.track, 15 }, + { WayType.track, 1 }, { WayType.bus_guideway, 0 }, { WayType.escape, 0 }, { WayType.raceway, 0 },