diff options
| author | Teddy Wing | 2018-03-27 16:28:56 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2018-03-27 16:46:18 +0200 | 
| commit | 6be13632388dd938a60447b540519678083c5711 (patch) | |
| tree | 9e5ed6de1a569bdccf3c81cf583f30821e5e3197 /lib/tom_tom | |
| parent | c17665c0cc064c8a14af812dedd645977d110388 (diff) | |
| download | chouette-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/tom_tom')
| -rw-r--r-- | lib/tom_tom/matrix.rb | 1 | 
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 | 
