From 35e6d2691ddd06041ad8c55a850651a895dcbe0f Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 9 Mar 2018 17:03:35 +0100 Subject: TomTom: Remove old commented code These served during development but are no longer needed. Refs #6095 --- lib/tom_tom.rb | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'lib/tom_tom.rb') diff --git a/lib/tom_tom.rb b/lib/tom_tom.rb index 5343519fd..d5cdb15a4 100644 --- a/lib/tom_tom.rb +++ b/lib/tom_tom.rb @@ -1,6 +1,5 @@ class TomTom BASE_URL = 'https://api.tomtom.com' -# https://api.tomtom.com/routing/1/matrix/xml?key=&routeType=shortest&travelMode=truck API_KEY = '' def initialize @@ -15,31 +14,7 @@ class TomTom end end - # Maximum size of matrix is 700 (number of origins multiplied by number of destinations), so examples of matrix dimensions are: 5x10, 10x10, 28x25 (it does not need to be square). - # def matrix(opts) - # @connection.post do |req| - # req.url '/routing/1/matrix/json' - # req.params { - # routeType: 'shortest', - # travelMode: opts[:travel_mode], - # routingOption: 'TODO' - # } - # req.body { - # origins: [], - # destinations: [] - # } - # ) - # end - -# Maximum number of batch items is 700. -# { -# "batchItems": [ -# {"query": "/calculateRoute/52.36006039665441,4.851064682006836:52.36187528311709,4.850560426712036/json?travelMode=car&routeType=shortest&traffic=true&departAt=now&maxAlternatives=0"}, -# {"query": "/calculateRoute/52.36241907934766,4.850034713745116:52.36173769505809,4.852169752120972/json?travelMode=teleport&routeType=shortest&traffic=true&departAt=now"} -# ] -# } def batch(way_costs) - # TODO: figure out param assembly (maybe Net::HTTP has something?) params = URI.encode_www_form({ travelMode: 'car', routeType: 'shortest', -- cgit v1.2.3