From 8f659c096470d97cc4a41596b37d1f629c96e25b Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 9 Mar 2018 17:04:44 +0100 Subject: TomTom: Use travelMode='bus' For now, hard-code 'bus' as the travel mode. This feature is currently only going to be used for Ouibus, so we want to be able to request in 'bus' mode, but for now don't have time to think about how to make it more extensible to other travel modes and operators. Refs #6095 --- lib/tom_tom.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tom_tom.rb b/lib/tom_tom.rb index d5cdb15a4..60472c3be 100644 --- a/lib/tom_tom.rb +++ b/lib/tom_tom.rb @@ -16,7 +16,7 @@ class TomTom def batch(way_costs) params = URI.encode_www_form({ - travelMode: 'car', + travelMode: 'bus', routeType: 'shortest', traffic: 'true', departAt: 'now', -- cgit v1.2.3