public function getLatLngs($preferFlat = true)
    {
        if ($preferFlat) {
            $value = [];

            foreach ($this->latLngs as $ring) {
                $value = array_merge($value, $ring);
            }

            return $value;
        }

        return $this->latLngs;
    }
public function getLatLngs($preferFlat = true)
    {
        if ($preferFlat) {
            $value = [];

            foreach ($this->latLngs as $ring) {
                $value = array_merge($value, $ring);
            }

            return $value;
        }

        return $this->latLngs;
    }
public function getLatLngs ( $ preferFlat = true ) { if ( $ preferFlat ) { $ value = [ ] ; foreach ( $ this -> latLngs as $ ring ) { $ value = array_merge ( $ value , $ ring ) ; } return $ value ; } return $ this -> latLngs ; }
Get all lat lngs.

@param bool $preferFlat If true a flat array is returned instead of a list of rings.

@return array
Get all lat lngs .