return way type in encoded form for unnamed streets
This commit is contained in:
parent
3516538813
commit
1fc11a6b06
@ -17,7 +17,8 @@ Feature: Bike - Street names in instructions
|
||||
When I route I should get
|
||||
| from | to | route |
|
||||
| a | c | My Way,Your Way |
|
||||
|
||||
|
||||
@unnamed
|
||||
Scenario: Bike - Use way type to describe unnamed ways
|
||||
Given the node map
|
||||
| a | b | c | d |
|
||||
@ -28,8 +29,8 @@ Feature: Bike - Street names in instructions
|
||||
| bcd | track | |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route |
|
||||
| a | d | cycleway,track |
|
||||
| from | to | route |
|
||||
| a | d | {highway:cycleway},{highway:track} |
|
||||
|
||||
@area @names @todo
|
||||
Scenario: Bike - name on streets overlapping an area
|
||||
|
@ -165,7 +165,8 @@ function way_function (way)
|
||||
elseif "" ~= name then
|
||||
way.name = name
|
||||
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
|
||||
|
||||
-- speed
|
||||
|
Loading…
Reference in New Issue
Block a user