aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tom_tom/matrix/point.rb
diff options
context:
space:
mode:
authorAlban Peignier2018-04-04 10:03:40 +0200
committerGitHub2018-04-04 10:03:40 +0200
commitecf0dd6406576f8a63ee056fab73b05171c3e767 (patch)
treed48bf1be4052ca446bd6c715698d857a9102d914 /lib/tom_tom/matrix/point.rb
parent6262b1cf8c536fb59997119a28420584ab08994c (diff)
parent2cb5225efbb080707c060e4038ae6d48612515f0 (diff)
downloadchouette-core-ecf0dd6406576f8a63ee056fab73b05171c3e767.tar.bz2
Merge pull request #413 from af83/6222-route-way-costs--use-TomTom-matrix-API-instead-of-batch
Route way costs use tom tom matrix api instead of batch. Refs #6222
Diffstat (limited to 'lib/tom_tom/matrix/point.rb')
-rw-r--r--lib/tom_tom/matrix/point.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/tom_tom/matrix/point.rb b/lib/tom_tom/matrix/point.rb
new file mode 100644
index 000000000..435b4d4b0
--- /dev/null
+++ b/lib/tom_tom/matrix/point.rb
@@ -0,0 +1,18 @@
+module TomTom
+ class Matrix
+ class Point
+ attr_reader :coordinates, :id
+
+ def initialize(coordinates, id)
+ @coordinates = coordinates
+ @id = id
+ end
+
+ def ==(other)
+ other.is_a?(self.class) &&
+ @coordinates == other.coordinates &&
+ @id == other.id
+ end
+ end
+ end
+end