Cleaning of several regressions in the parsing code.

This commit is contained in:
DennisOSRM
2013-02-27 17:36:44 +01:00
parent af5f2f85da
commit 53af4ee39f
11 changed files with 297 additions and 100 deletions
+1 -6
View File
@@ -109,12 +109,7 @@ function node_function (node)
return 1
end
function way_function (way, numberOfNodesInWay)
-- A way must have two nodes or more
if(numberOfNodesInWay < 2) then
return 0;
end
function way_function (way)
-- initial routability check, filters out buildings, boundaries, etc
local highway = way.tags:Find("highway")
local route = way.tags:Find("route")
+1 -7
View File
@@ -89,13 +89,7 @@ function node_function (node)
end
function way_function (way, numberOfNodesInWay)
-- A way must have two nodes or more
if(numberOfNodesInWay < 2) then
return 0;
end
function way_function (way)
-- First, get the properties of each way that we come across
local highway = way.tags:Find("highway")
local name = way.tags:Find("name")
+1 -6
View File
@@ -75,13 +75,8 @@ function node_function (node)
return 1
end
function way_function (way, numberOfNodesInWay)
function way_function (way)
-- A way must have two nodes or more
if(numberOfNodesInWay < 2) then
return 0;
end
-- First, get the properties of each way that we come across
local highway = way.tags:Find("highway")
local name = way.tags:Find("name")
+1 -6
View File
@@ -46,12 +46,7 @@ function node_function (node)
return 1
end
function way_function (way, numberOfNodesInWay)
-- A way must have two nodes or more
if(numberOfNodesInWay < 2) then
return 0;
end
function way_function (way)
local highway = way.tags:Find("highway")
local name = way.tags:Find("name")
local oneway = way.tags:Find("oneway")