diff --git a/profiles/car.lua b/profiles/car.lua index 33a7247d6..7a6999d3e 100644 --- a/profiles/car.lua +++ b/profiles/car.lua @@ -97,8 +97,8 @@ function way_function (way) local junction = way.tags:Find("junction") local route = way.tags:Find("route") local maxspeed = parse_maxspeed(way.tags:Find ( "maxspeed") ) - local maxspeed_forward = tonumber(way.tags:Find( "maxspeed:forward")) - local maxspeed_backward = tonumber(way.tags:Find( "maxspeed:backward")) + local maxspeed_forward = parse_maxspeed(way.tags:Find( "maxspeed:forward")) + local maxspeed_backward = parse_maxspeed(way.tags:Find( "maxspeed:backward")) local barrier = way.tags:Find("barrier") local oneway = way.tags:Find("oneway") local cycleway = way.tags:Find("cycleway")