diff options
| author | Teddy Wing | 2018-03-23 17:57:54 +0100 |
|---|---|---|
| committer | Teddy Wing | 2018-03-27 16:46:18 +0200 |
| commit | 1c1ecc85064042b0d719e3134afe310227d41f1c (patch) | |
| tree | c6437287db73d7e95f77f4929061deaa4297dcaf /lib | |
| parent | e2cbcdb4dc32db05e2c6d7a7bb57952e1da6dab3 (diff) | |
| download | chouette-core-1c1ecc85064042b0d719e3134afe310227d41f1c.tar.bz2 | |
TomTom::Matrix#points_from_way_costs: Better names for IDs
Instead of a generic `ids` array, use clearer variable names for these
values.
Refs #6222
Diffstat (limited to 'lib')
| -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 |
