diff options
| author | Teddy Wing | 2018-03-23 18:05:02 +0100 |
|---|---|---|
| committer | Teddy Wing | 2018-03-27 16:46:18 +0200 |
| commit | 0a45ba811eefebb97bdc75f5e70da2be13186c28 (patch) | |
| tree | 5b9bcdd8b1c8288240cbbe241385769d3c7abf40 /lib | |
| parent | 1c1ecc85064042b0d719e3134afe310227d41f1c (diff) | |
| download | chouette-core-0a45ba811eefebb97bdc75f5e70da2be13186c28.tar.bz2 | |
TomTom::Matrix#points_as_params: Use `TomTom::Matrix::Point`s
Rewrite this method to accept `TomTom::Matrix::Point`s instead of plain
`Geokit::LatLng` coordinates. Do this because this method needs to take
the result of `#points_from_way_costs` as input, and that method now
returns a `Set` of `Point`s.
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 857c76b2f..e0ee566b6 100644 --- a/lib/tom_tom/matrix.rb +++ b/lib/tom_tom/matrix.rb @@ -52,11 +52,11 @@ module TomTom end def points_as_params(points) - points.map do |latlng| + points.map do |point| { point: { - latitude: latlng.lat, - longitude: latlng.lng + latitude: point.coordinates.lat, + longitude: point.coordinates.lng } } end |
