src/FilterHelper/ProviderInterface.php
public function getQueryString(
        $street = null,
        $postal = null,
        $city = null,
        $country = null,
        $fullAddress = null
    ) {
        // If we have a full address use it.
        if ($fullAddress) {
            // If there is a country try to use the long form.
            if ((null !== $country) && (null !== ($fullCountryName = $this->getFullCountryName($country)))) {
                return \sprintf('%s, %s', $fullAddress, $fullCountryName);
            }

            if (null !== $country) {
                // If there is no long form use it as is it.
                return \sprintf('%s, %s', $fullAddress, $country);
            }

            // Or just the full one.
            return $fullAddress;
        }

        // Try to solve the country.
        if ((null !== $country) && (null !== ($fullCountryName = $this->getFullCountryName($country)))) {
            $country = $fullCountryName;
        }

        return \sprintf(
            '%s, %s %s, %s',
            $street,
            $postal,
            $city,
            $country
        );
    }
public function getQueryString(
        $street = null,
        $postal = null,
        $city = null,
        $country = null,
        $fullAddress = null
    ) {
        // If we have a full address use it.
        if ($fullAddress) {
            // If there is a country try to use the long form.
            if ((null !== $country) && (null !== ($fullCountryName = $this->getFullCountryName($country)))) {
                return \sprintf('%s, %s', $fullAddress, $fullCountryName);
            }

            if (null !== $country) {
                // If there is no long form use it as is it.
                return \sprintf('%s, %s', $fullAddress, $country);
            }

            // Or just the full one.
            return $fullAddress;
        }

        // Try to solve the country.
        if ((null !== $country) && (null !== ($fullCountryName = $this->getFullCountryName($country)))) {
            $country = $fullCountryName;
        }

        return \sprintf(
            '%s, %s %s, %s',
            $street,
            $postal,
            $city,
            $country
        );
    }
public function getQueryString ( $ street = null , $ postal = null , $ city = null , $ country = null , $ fullAddress = null ) { // If we have a full address use it. if ( $ fullAddress ) { // If there is a country try to use the long form. if ( ( null !== $ country ) && ( null !== ( $ fullCountryName = $ this -> getFullCountryName ( $ country ) ) ) ) { return \ sprintf ( '%s, %s' , $ fullAddress , $ fullCountryName ) ; } if ( null !== $ country ) { // If there is no long form use it as is it. return \ sprintf ( '%s, %s' , $ fullAddress , $ country ) ; } // Or just the full one. return $ fullAddress ; } // Try to solve the country. if ( ( null !== $ country ) && ( null !== ( $ fullCountryName = $ this -> getFullCountryName ( $ country ) ) ) ) { $ country = $ fullCountryName ; } return \ sprintf ( '%s, %s %s, %s' , $ street , $ postal , $ city , $ country ) ; }
Build the query string.

@param string $street      The street.
@param string $postal      The postal code.
@param string $city        Name of city.
@param string $country     A 2-letter country code.
@param string $fullAddress Address string without specific format.

@return string
Build the query string .