return way type in encoded form for unnamed streets

This commit is contained in:
Emil Tin 2013-04-08 16:23:42 +02:00
parent 3516538813
commit 1fc11a6b06
2 changed files with 6 additions and 4 deletions

View File

@ -18,6 +18,7 @@ Feature: Bike - Street names in instructions
| from | to | route | | from | to | route |
| a | c | My Way,Your Way | | a | c | My Way,Your Way |
@unnamed
Scenario: Bike - Use way type to describe unnamed ways Scenario: Bike - Use way type to describe unnamed ways
Given the node map Given the node map
| a | b | c | d | | a | b | c | d |
@ -29,7 +30,7 @@ Feature: Bike - Street names in instructions
When I route I should get When I route I should get
| from | to | route | | from | to | route |
| a | d | cycleway,track | | a | d | {highway:cycleway},{highway:track} |
@area @names @todo @area @names @todo
Scenario: Bike - name on streets overlapping an area Scenario: Bike - name on streets overlapping an area

View File

@ -165,7 +165,8 @@ function way_function (way)
elseif "" ~= name then elseif "" ~= name then
way.name = name way.name = name
else else
way.name = highway -- if no name exists, use way type way.name = "{highway:"..highway.."}" -- if no name exists, use way type
-- this encoding scheme is excepted to be a temporary solution
end end
-- speed -- speed