diff options
| author | Teddy Wing | 2018-04-27 12:38:09 +0200 |
|---|---|---|
| committer | Teddy Wing | 2018-04-27 12:38:09 +0200 |
| commit | ee6edf03f8da4015080261f3244144293e56ad11 (patch) | |
| tree | e8217eaa05852fede3d9d8a51f64bc9129268dac /lib | |
| parent | 3ed5ca0e97c287977646b7af6a41632c9dd3ad49 (diff) | |
| download | chouette-core-ee6edf03f8da4015080261f3244144293e56ad11.tar.bz2 | |
TomTom::Matrix: Disable traffic information6661-make-TomTom-data-more-consistent
By default the TomTom API uses traffic data to calculate travel time.
This means that previously, getting costs for the exact same route twice
at different times could produce different results.
Johan made a good suggestion to turn off this functionality as it's
apparently enabled by default. This should get us correct times
regardless of time of day since the distances will be effectively the
same.
Refs #6661
Diffstat (limited to 'lib')
| -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 b0c8cc335..c418cd516 100644 --- a/lib/tom_tom/matrix.rb +++ b/lib/tom_tom/matrix.rb @@ -15,6 +15,7 @@ module TomTom req.headers['Content-Type'] = 'application/json' req.params[:routeType] = 'shortest' + req.params[:traffic] = 'false' req.params[:travelMode] = 'bus' req.body = build_request_body(points) |
