Merge pull request #217 from emiltin/cuke_ignore_reached
ignore 'You have reached your destination' when parsing route instructio...
This commit is contained in:
commit
b16f3f91d9
@ -61,7 +61,7 @@ def route_status response
|
|||||||
end
|
end
|
||||||
|
|
||||||
def way_list instructions
|
def way_list instructions
|
||||||
instructions.
|
instructions.reject { |r| r[0]=='You have reached your destination' }.
|
||||||
map { |r| r[1] }.
|
map { |r| r[1] }.
|
||||||
map { |r| r=="" ? '""' : r }.
|
map { |r| r=="" ? '""' : r }.
|
||||||
join(',')
|
join(',')
|
||||||
|
Loading…
Reference in New Issue
Block a user