fuzzy matching in routability tables, ported from opposite branch

This commit is contained in:
Emil Tin
2013-02-04 10:31:35 +01:00
parent bb1064ac42
commit d67ac1a708
5 changed files with 22 additions and 29 deletions
+8 -2
View File
@@ -71,8 +71,14 @@ def build_ways_from_table table
way << node5
tags = row.dup
tags.delete 'forw'
tags.delete 'backw'
#remove tags that describe expected test result
tags.reject! do |k,v|
k =~ /^forw\b/ ||
k =~ /^backw\b/ ||
k =~ /^bothw\b/
end
#remove empty tags
tags.reject! { |k,v| v=='' }
# sort tag keys in the form of 'node/....'
-2
View File
@@ -28,5 +28,3 @@ class FuzzyMatch
end