diff options
| author | Teddy Wing | 2018-03-09 17:42:08 +0100 |
|---|---|---|
| committer | Luc Donnet | 2018-03-23 17:16:43 +0100 |
| commit | 30f1a100ce1058598ca596a17dda866f6ad9a8f0 (patch) | |
| tree | 753900d201e58762a9bf8ed536c8adaa6027fb8c /lib | |
| parent | e3d6e9d5b8aa1e8df117f866c273927b2843c6d0 (diff) | |
| download | chouette-core-30f1a100ce1058598ca596a17dda866f6ad9a8f0.tar.bz2 | |
TomTom#batch: Remove unwanted params
I had copy-pasted these from the example in the docs
(https://developer.tomtom.com/online-routing/online-routing-documentation/batch-routing),
but I don't think we want some of these. For `maxAlternatives`, it's
already 0 by default according to their docs, and the others don't
really make sense for us because we want a general routing instead of
one based on traffic or time of day.
Refs #6095
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/tom_tom.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/tom_tom.rb b/lib/tom_tom.rb index 60472c3be..4a6a58df0 100644 --- a/lib/tom_tom.rb +++ b/lib/tom_tom.rb @@ -17,10 +17,7 @@ class TomTom def batch(way_costs) params = URI.encode_www_form({ travelMode: 'bus', - routeType: 'shortest', - traffic: 'true', - departAt: 'now', - maxAlternatives: 0 + routeType: 'shortest' }) batch_items = convert_way_costs_for_batch(way_costs).map do |locations| { |
