aboutsummaryrefslogtreecommitdiffstats
path: root/app/services
diff options
context:
space:
mode:
authorTeddy Wing2018-03-27 11:18:17 +0200
committerTeddy Wing2018-03-27 16:46:18 +0200
commitf257a8b3a7ae4c59c6907b41f6e8d7dc74259917 (patch)
tree0178b9cd432c1c54b48fd25e9360c4d710972bf1 /app/services
parentf03f942ecb9b802664dee0cc0f33f96a566c67e9 (diff)
downloadchouette-core-f257a8b3a7ae4c59c6907b41f6e8d7dc74259917.tar.bz2
RouteWayCostCalculator: Use `TomTom.matrix` instead of batch
Calculate routes using the TomTom matrix API. Update the spec's HTTP request stub accordingly (note that the stub is still fake). Refs #6222
Diffstat (limited to 'app/services')
-rw-r--r--app/services/route_way_cost_calculator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/route_way_cost_calculator.rb b/app/services/route_way_cost_calculator.rb
index 2e30c94fc..d41a2e59a 100644
--- a/app/services/route_way_cost_calculator.rb
+++ b/app/services/route_way_cost_calculator.rb
@@ -5,7 +5,7 @@ class RouteWayCostCalculator
def calculate!
way_costs = StopAreasToWayCostsConverter.new(@route.stop_areas).convert
- way_costs = TomTom.batch(way_costs)
+ way_costs = TomTom.matrix(way_costs)
way_costs = WayCostCollectionJSONSerializer.dump(way_costs)
@route.update(costs: way_costs)
end