- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
$routeAnalyze = new TaxiRouteAnalyzerLite();
$options = array(
'fromLat' => $fromLat,
'fromLon' => $fromLon,
'toLat' => $toLat,
'toLon' => $toLon,
'cityPolygon' => $this->cityPolygon,
'costPos' =>$costPos,
'costPosOut' => $costPosOut,
'costKm' => $costKm,
'costKmOut' => $costKmOut,
'includedKm' => $includedKm,
'meas' => 'distance',
'costKmOutIn' => $costKmOutIn,
);
$this->writeLog('options', $options);
$cost = $routeAnalyze->calcCost($fromLat, $fromLon, $toLat, $toLon, $this->cityPolygon, $costPos, $costPosOut, $costKm, $costKmOut, $includedKm, 'distance', $costKmOutIn);
$this->writeLog('cost', $cost);
return $cost;
Неужели нужно создавать отдельно переменную чтобы вывести в лог, а при этом метод должен быть таким громоздким?!
kgm-rj 23.11.2015 16:09 # 0
akanit 23.11.2015 16:53 # 0