src/Query.php
public function format(string $format): self
    {
        $format = \mb_strtolower($format);

        if (\in_array($format, $this->acceptedFormat, true)) {
            $this->setFormat($format);

            return $this;
        }

        throw new InvalidParameterException('Format is not supported');
    }
public function format(string $format): self
    {
        $format = \mb_strtolower($format);

        if (\in_array($format, $this->acceptedFormat, true)) {
            $this->setFormat($format);

            return $this;
        }

        throw new InvalidParameterException('Format is not supported');
    }
public function format ( string $ format ) : self { $ format = \ mb_strtolower ( $ format ) ; if ( \ in_array ( $ format , $ this -> acceptedFormat , true ) ) { $ this -> setFormat ( $ format ) ; return $ this ; } throw new InvalidParameterException ( 'Format is not supported' ) ; }
Format returning by the request.

@param string $format The output format for the request

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

@return \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup
Format returning by the request .