aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-03-09 17:42:08 +0100
committerTeddy Wing2018-03-14 16:38:39 +0100
commitd76fa905ede93b8943e2fff372f7afa93f22b524 (patch)
treef771e99cd85eebf5b5d7b1d30db5cf6e5ef8fc1c
parent8f659c096470d97cc4a41596b37d1f629c96e25b (diff)
downloadchouette-core-d76fa905ede93b8943e2fff372f7afa93f22b524.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
-rw-r--r--lib/tom_tom.rb5
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|
{