aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tom_tom/matrix.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tom_tom/matrix.rb')
-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