aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTeddy Wing2018-03-27 16:28:56 +0200
committerTeddy Wing2018-03-27 16:46:18 +0200
commit6be13632388dd938a60447b540519678083c5711 (patch)
tree9e5ed6de1a569bdccf3c81cf583f30821e5e3197 /lib
parentc17665c0cc064c8a14af812dedd645977d110388 (diff)
downloadchouette-core-6be13632388dd938a60447b540519678083c5711.tar.bz2
TomTom::Matrix: Add comment about JSON serialisation
Make it clearer why we have to use a custom serialiser here. Refs #6222
Diffstat (limited to 'lib')
-rw-r--r--lib/tom_tom/matrix.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tom_tom/matrix.rb b/lib/tom_tom/matrix.rb
index 71eb6c75d..747133b53 100644
--- a/lib/tom_tom/matrix.rb
+++ b/lib/tom_tom/matrix.rb
@@ -67,6 +67,7 @@ module TomTom
end
def build_request_body(points)
+ # Serialize `BigDecimal` values as floats to please the TomTom API
RequestJSONSerializer.dump({
origins: points,
destinations: points