Merge pull request #217 from emiltin/cuke_ignore_reached

ignore 'You have reached your destination' when parsing route instructio...
This commit is contained in:
Project OSRM 2012-04-12 07:51:27 -07:00
commit b16f3f91d9

View File

@ -61,7 +61,7 @@ def route_status response
end
def way_list instructions
instructions.
instructions.reject { |r| r[0]=='You have reached your destination' }.
map { |r| r[1] }.
map { |r| r=="" ? '""' : r }.
join(',')