test access tags

This commit is contained in:
Emil Tin
2012-09-30 12:01:56 +02:00
committed by Emil Tin
parent 2798c5a48d
commit 81b9e3b4cb
6 changed files with 217 additions and 77 deletions
+2 -1
View File
@@ -76,7 +76,8 @@ def build_ways_from_table table
tags.reject! { |k,v| v=='' }
# sort tag keys in the form of 'node/....'
way_tags = {}
way_tags = { 'highway' => 'primary' }
node_tags = {}
tags.each_pair do |k,v|
if k =~ /node\/(.*)/
+4
View File
@@ -7,4 +7,8 @@ class OSRMError < StandardError
@code = code
@msg = msg
end
def to_s
@msg
end
end