diff options
Diffstat (limited to 'lib/tom_tom')
| -rw-r--r-- | lib/tom_tom/matrix.rb | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/lib/tom_tom/matrix.rb b/lib/tom_tom/matrix.rb index 4ef620f99..857c76b2f 100644 --- a/lib/tom_tom/matrix.rb +++ b/lib/tom_tom/matrix.rb @@ -32,18 +32,18 @@ module TomTom        points = Set.new        way_costs.each do |way_cost| -        ids = way_cost.id.split('-') +        departure_id, arrival_id = way_cost.id.split('-')          points.add(            TomTom::Matrix::Point.new(              way_cost.departure, -            ids[0] +            departure_id            )          )          points.add(            TomTom::Matrix::Point.new(              way_cost.arrival, -            ids[1] +            arrival_id            )          )        end | 
