private function initStopPoint($externalCoverageId)
    {
        $navitiaStopPoint = $this->navitia->getStopPoint(
            $externalCoverageId,
            $this->stopPoint->getExternalId(),
            array('depth' => 1, 'show_codes' => 'true')
        );

        $this->stopPoint->setTitle($navitiaStopPoint->stop_points[0]->name);
        $this->stopPoint->setCodes($navitiaStopPoint->stop_points[0]->codes);

        $administrativeRegion = isset($navitiaStopPoint->stop_points[0]->administrative_regions)
            ? $navitiaStopPoint->stop_points[0]->administrative_regions[0]->name
            : null;
        $this->stopPoint->setCity($administrativeRegion);
    }
private function initStopPoint($externalCoverageId)
    {
        $navitiaStopPoint = $this->navitia->getStopPoint(
            $externalCoverageId,
            $this->stopPoint->getExternalId(),
            array('depth' => 1, 'show_codes' => 'true')
        );

        $this->stopPoint->setTitle($navitiaStopPoint->stop_points[0]->name);
        $this->stopPoint->setCodes($navitiaStopPoint->stop_points[0]->codes);

        $administrativeRegion = isset($navitiaStopPoint->stop_points[0]->administrative_regions)
            ? $navitiaStopPoint->stop_points[0]->administrative_regions[0]->name
            : null;
        $this->stopPoint->setCity($administrativeRegion);
    }
private function initStopPoint ( $ externalCoverageId ) { $ navitiaStopPoint = $ this -> navitia -> getStopPoint ( $ externalCoverageId , $ this -> stopPoint -> getExternalId ( ) , array ( 'depth' => 1 , 'show_codes' => 'true' ) ) ; $ this -> stopPoint -> setTitle ( $ navitiaStopPoint -> stop_points [ 0 ] -> name ) ; $ this -> stopPoint -> setCodes ( $ navitiaStopPoint -> stop_points [ 0 ] -> codes ) ; $ administrativeRegion = isset ( $ navitiaStopPoint -> stop_points [ 0 ] -> administrative_regions ) ? $ navitiaStopPoint -> stop_points [ 0 ] -> administrative_regions [ 0 ] -> name : null ; $ this -> stopPoint -> setCity ( $ administrativeRegion ) ; }
Populate stopPoint from navitia

@param  string $externalCoverageId External coverage id

@return StopPoint The populated StopPoint
Populate stopPoint from navitia