From 9eef17506d0bd6c91d498bad28fd2b023a495f6a Mon Sep 17 00:00:00 2001 From: Emil Tin Date: Sat, 18 Feb 2012 16:46:57 +0100 Subject: [PATCH] add a speedprofile for walking, and a test for basic way accessability --- features/access.feature | 29 +++++++++++++++++++++++++++-- speedprofiles/foot.ini | 28 ++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 speedprofiles/foot.ini diff --git a/features/access.feature b/features/access.feature index bcdf7ada5b7..5151aa1e1d2 100644 --- a/features/access.feature +++ b/features/access.feature @@ -1,6 +1,6 @@ @routing @access -Feature: Oneway streets - Basic accessability of various way types. +Feature: Default speedprofiles + Basic accessability of various way types depending on speedprofile. Scenario: Basic access for cars Given the speedprofile "car" @@ -53,3 +53,28 @@ Feature: Oneway streets | cycleway | x | | bridleway | | + Scenario: Basic access for walking + Given the speedprofile "foot" + Then routability should be + | highway | forw | + | motorway | | + | motorway_link | | + | trunk | | + | trunk_link | x | + | primary | x | + | secondary | x | + | tertiary | x | + | residential | x | + | service | x | + | unclassified | x | + | living_street | x | + | road | x | + | track | x | + | path | x | + | footway | x | + | pedestrian | x | + | steps | x | + | pier | x | + | cycleway | x | + | bridleway | | + diff --git a/speedprofiles/foot.ini b/speedprofiles/foot.ini new file mode 100644 index 00000000000..656c82ad5b7 --- /dev/null +++ b/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