remove duplicate method calls

This commit is contained in:
Nabeel Shahzad
2018-01-01 15:04:32 -06:00
parent b456dc1a71
commit d1c626afe8
4 changed files with 25 additions and 65 deletions

View File

@@ -66,10 +66,11 @@ class PIREPService extends BaseService
return $pirep;
}
$route = $this->geoSvc->routeToNavPoints(
$pirep->route,
$pirep->dep_airport,
$pirep->arr_airport
$route = $this->geoSvc->getCoordsFromRoute(
$pirep->dpt_airport_id,
$pirep->arr_airport_id,
[$pirep->dpt_airport->lat, $pirep->dpt_airport->lon],
$pirep->route
);
/**