changed speeds and return type to byte

This commit is contained in:
2023-04-09 19:22:34 +02:00
parent 9448187452
commit 6e836db79b
3 changed files with 20 additions and 28 deletions

View File

@ -98,18 +98,19 @@ public class Tag
public static readonly Dictionary<WayType, byte> defaultSpeedCar = new() {
{ WayType.NONE, 0 },
{ WayType.motorway, 110 },
{ WayType.trunk, 100 },
{ WayType.motorway, 130 },
{ WayType.motorroad, 90 },
{ WayType.trunk, 85 },
{ WayType.primary, 80 },
{ WayType.secondary, 80 },
{ WayType.tertiary, 70 },
{ WayType.unclassified, 20 },
{ WayType.unclassified, 15 },
{ WayType.residential, 10 },
{ WayType.motorway_link, 50 },
{ WayType.motorway_link, 60 },
{ WayType.trunk_link, 50 },
{ WayType.primary_link, 30 },
{ WayType.secondary_link, 25 },
{ WayType.tertiary_link, 25 },
{ WayType.primary_link, 50 },
{ WayType.secondary_link, 50 },
{ WayType.tertiary_link, 50 },
{ WayType.living_street, 5 },
{ WayType.service, 1 },
{ WayType.pedestrian, 0 },
@ -160,7 +161,7 @@ public class Tag
{ WayType.construction, 0 }
};
// ReSharper disable InconsistentNaming
public enum WayType : byte { NONE, motorway, trunk, primary, secondary, tertiary, unclassified, residential, motorway_link, trunk_link, primary_link, secondary_link, tertiary_link, living_street, service, pedestrian, track, bus_guideway, escape, raceway, road, busway, footway, bridleway, steps, corridor, path, cycleway, construction }
public enum WayType : byte { NONE, motorway, motorroad, trunk, primary, secondary, tertiary, unclassified, residential, motorway_link, trunk_link, primary_link, secondary_link, tertiary_link, living_street, service, pedestrian, track, bus_guideway, escape, raceway, road, busway, footway, bridleway, steps, corridor, path, cycleway, construction }
// ReSharper restore InconsistentNaming
public enum SpeedType { pedestrian, car, any }