From 8dd63411ea1db0837a504b4ef8b8f82bdae0197f Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 1 Apr 2023 18:28:21 +0200 Subject: [PATCH] Changed some speedvalues for cars and pedestrians (to allow use of mis-qualified roads) --- OSMDatastructure/Tag.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/OSMDatastructure/Tag.cs b/OSMDatastructure/Tag.cs index f5c3cf6..70ac08e 100644 --- a/OSMDatastructure/Tag.cs +++ b/OSMDatastructure/Tag.cs @@ -88,7 +88,7 @@ public class Tag } public static readonly Dictionary defaultSpeedCar = new() { - { WayType.NONE, 0 }, + { WayType.NONE, 1 }, { WayType.motorway, 110 }, { WayType.trunk, 100 }, { WayType.primary, 80 }, @@ -102,13 +102,13 @@ public class Tag { WayType.secondary_link, 25 }, { WayType.tertiary_link, 25 }, { WayType.living_street, 10 }, - { WayType.service, 0 }, + { WayType.service, 1 }, { WayType.pedestrian, 0 }, - { WayType.track, 0 }, + { WayType.track, 15 }, { WayType.bus_guideway, 0 }, { WayType.escape, 0 }, { WayType.raceway, 0 }, - { WayType.road, 25 }, + { WayType.road, 20 }, { WayType.busway, 0 }, { WayType.footway, 0 }, { WayType.bridleway, 0 }, @@ -125,9 +125,9 @@ public class Tag { WayType.trunk, 0 }, { WayType.primary, 0 }, { WayType.secondary, 0 }, - { WayType.tertiary, 0 }, + { WayType.tertiary, 2 }, { WayType.unclassified, 1 }, - { WayType.residential, 3 }, + { WayType.residential, 4 }, { WayType.motorway_link, 0 }, { WayType.trunk_link, 0 }, { WayType.primary_link, 0 }, @@ -136,9 +136,9 @@ public class Tag { WayType.living_street, 5 }, { WayType.service, 2 }, { WayType.pedestrian, 5 }, - { WayType.track, 0 }, + { WayType.track, 1 }, { WayType.bus_guideway, 0 }, - { WayType.escape, 0 }, + { WayType.escape, 1 }, { WayType.raceway, 0 }, { WayType.road, 3 }, { WayType.busway, 0 },