diff options
| author | Teddy Wing | 2018-03-27 11:18:17 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2018-03-27 16:46:18 +0200 | 
| commit | f257a8b3a7ae4c59c6907b41f6e8d7dc74259917 (patch) | |
| tree | 0178b9cd432c1c54b48fd25e9360c4d710972bf1 /app/services | |
| parent | f03f942ecb9b802664dee0cc0f33f96a566c67e9 (diff) | |
| download | chouette-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.rb | 2 | 
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 | 
