public function getPositionFromTechnicalInfos()
    {
        $positionTechnicalField = [
            media_subdef::TC_DATA_LATITUDE,
            media_subdef::TC_DATA_LONGITUDE
        ];
        $position = [];

        foreach($positionTechnicalField as $field){
            $fieldData = $this->get_technical_infos($field);

            if($fieldData){
                $position[$field] = $fieldData->getValue();
            }
        }

        if(count($position) == 2){
            return [
                'isCoordComplete' => 1,
                'latitude' => $position[media_subdef::TC_DATA_LATITUDE],
                'longitude' => $position[media_subdef::TC_DATA_LONGITUDE]
            ];
        }

        return ['isCoordComplete' => 0, 'latitude' => 'false', 'longitude' => 'false'];
    }
public function getPositionFromTechnicalInfos()
    {
        $positionTechnicalField = [
            media_subdef::TC_DATA_LATITUDE,
            media_subdef::TC_DATA_LONGITUDE
        ];
        $position = [];

        foreach($positionTechnicalField as $field){
            $fieldData = $this->get_technical_infos($field);

            if($fieldData){
                $position[$field] = $fieldData->getValue();
            }
        }

        if(count($position) == 2){
            return [
                'isCoordComplete' => 1,
                'latitude' => $position[media_subdef::TC_DATA_LATITUDE],
                'longitude' => $position[media_subdef::TC_DATA_LONGITUDE]
            ];
        }

        return ['isCoordComplete' => 0, 'latitude' => 'false', 'longitude' => 'false'];
    }
public function getPositionFromTechnicalInfos ( ) { $ positionTechnicalField = [ media_subdef :: TC_DATA_LATITUDE , media_subdef :: TC_DATA_LONGITUDE ] ; $ position = [ ] ; foreach ( $ positionTechnicalField as $ field ) { $ fieldData = $ this -> get_technical_infos ( $ field ) ; if ( $ fieldData ) { $ position [ $ field ] = $ fieldData -> getValue ( ) ; } } if ( count ( $ position ) == 2 ) { return [ 'isCoordComplete' => 1 , 'latitude' => $ position [ media_subdef :: TC_DATA_LATITUDE ] , 'longitude' => $ position [ media_subdef :: TC_DATA_LONGITUDE ] ] ; } return [ 'isCoordComplete' => 0 , 'latitude' => 'false' , 'longitude' => 'false' ] ; }
Return an array containing GPSPosition

@return array
Return an array containing GPSPosition