From d76fa905ede93b8943e2fff372f7afa93f22b524 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 9 Mar 2018 17:42:08 +0100 Subject: 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 --- lib/tom_tom.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib') 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| { -- cgit v1.2.3