diff --git a/features/support/config.rb b/features/support/config.rb index 10ed87b28..69705b7a5 100644 --- a/features/support/config.rb +++ b/features/support/config.rb @@ -10,7 +10,7 @@ end def read_speedprofile profile @speedprofile = {} @speedprofile_str = nil - s = File.read "speedprofiles/#{profile}.ini" + s = File.read "test/speedprofiles/#{profile}.ini" s.scan /(.*)=(.*)/ do |option| @speedprofile[option[0].strip] = option[1].strip end diff --git a/features/time.feature b/features/time.feature index 564033db2..e2da7fc57 100644 --- a/features/time.feature +++ b/features/time.feature @@ -6,9 +6,6 @@ Feature: Estimation of travel time Background: Use specific speeds Given the speedprofile "bicycle" - And the speedprofile settings - | primary | 15 | - | footway | 5 | Scenario: Basic travel time, 1m scale Given a grid size of 1 meters @@ -178,5 +175,4 @@ Feature: Estimation of travel time | 1 | 4 | ab | 72s | | 4 | 3 | ab | 24s | | 4 | 2 | ab | 48s | - | 4 | 1 | ab | 72s | - + | 4 | 1 | ab | 72s | \ No newline at end of file diff --git a/test/speedprofiles/bicycle.ini b/test/speedprofiles/bicycle.ini new file mode 100644 index 000000000..622ebe427 --- /dev/null +++ b/test/speedprofiles/bicycle.ini @@ -0,0 +1,10 @@ +[bicycle] + accessTag = bicycle + obeyOneways = yes + obeyBollards = no + useRestrictions = yes + takeMinimumOfSpeeds = yes + defaultSpeed = 15 + primary = 15 + cycleway = 15 + footway = 5 \ No newline at end of file diff --git a/test/speedprofiles/car.ini b/test/speedprofiles/car.ini new file mode 100644 index 000000000..b2ce3c4c0 --- /dev/null +++ b/test/speedprofiles/car.ini @@ -0,0 +1,23 @@ +[car] + accessTag = motorcar + defaultSpeed = 50 + obeyOneways = yes + useRestrictions = yes + barrier = bollard + + motorway = 100 + motorway_link = 90 + trunk = 90 + trunk_link = 70 + primary = 70 + primary_link = 60 + secondary = 60 + secondary_link = 50 + tertiary = 50 + tertiary_link = 40 + road = 40 + residential = 40 + unclassified = 30 + service = 20 + living_street = 10 + diff --git a/test/speedprofiles/foot.ini b/test/speedprofiles/foot.ini new file mode 100644 index 000000000..656c82ad5 --- /dev/null +++ b/test/speedprofiles/foot.ini @@ -0,0 +1,28 @@ +[foot] + accessTag = foot + defaultSpeed = 5 + obeyOneways = no + useRestrictions = no + obeyBollards = no + + primary = 5 + primary_link = 5 + secondary = 5 + secondary_link = 5 + tertiary = 5 + residential = 5 + unclassified = 5 + living_street = 5 + road = 5 + service = 5 + track = 5 + path = 5 + cycleway = 5 + footway = 5 + pedestrian = 5 + pier = 5 + steps = 2 + + ferry = 5 + + excludeFromGrid = ferry