src/Query.php
public function polygon(string $polygon)
    {
        if (\in_array($polygon, $this->polygon, true)) {
            $this->query['polygon_' . $polygon] = '1';

            return $this;
        }

        throw new InvalidParameterException('This polygon format is not supported');
    }
public function polygon(string $polygon)
    {
        if (\in_array($polygon, $this->polygon, true)) {
            $this->query['polygon_' . $polygon] = '1';

            return $this;
        }

        throw new InvalidParameterException('This polygon format is not supported');
    }
public function polygon ( string $ polygon ) { if ( \ in_array ( $ polygon , $ this -> polygon , true ) ) { $ this -> query [ 'polygon_' . $ polygon ] = '1' ; return $ this ; } throw new InvalidParameterException ( 'This polygon format is not supported' ) ; }
Output format for the geometry of results.

@param string $polygon

@throws \maxh\Nominatim\Exceptions\InvalidParameterException if polygon format is not supported

@return \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Query
Output format for the geometry of results .