src/Pakettikauppa/Client.php
public function searchPickupPoints($postcode = null, $street_address = null, $country = null, $service_provider = null, $limit = 5)
    {
        if ( ($postcode == null && $street_address == null) || (trim($postcode) == '' && trim($street_address) == '') ) {
            return '[]';
        }

        $post_params = array(
            'postcode'          => (string) $postcode,
            'address'           => (string) $street_address,
            'country'           => (string) $country,
            'service_provider'  => (string) $service_provider,
            'limit'             => (int) $limit
        );

        return $this->doPost('/pickup-points/search', $post_params);
    }
public function searchPickupPoints($postcode = null, $street_address = null, $country = null, $service_provider = null, $limit = 5)
    {
        if ( ($postcode == null && $street_address == null) || (trim($postcode) == '' && trim($street_address) == '') ) {
            return '[]';
        }

        $post_params = array(
            'postcode'          => (string) $postcode,
            'address'           => (string) $street_address,
            'country'           => (string) $country,
            'service_provider'  => (string) $service_provider,
            'limit'             => (int) $limit
        );

        return $this->doPost('/pickup-points/search', $post_params);
    }
public function searchPickupPoints ( $ postcode = null , $ street_address = null , $ country = null , $ service_provider = null , $ limit = 5 ) { if ( ( $ postcode == null && $ street_address == null ) || ( trim ( $ postcode ) == '' && trim ( $ street_address ) == '' ) ) { return '[]' ; } $ post_params = array ( 'postcode' => ( string ) $ postcode , 'address' => ( string ) $ street_address , 'country' => ( string ) $ country , 'service_provider' => ( string ) $ service_provider , 'limit' => ( int ) $ limit ) ; return $ this -> doPost ( '/pickup-points/search' , $ post_params ) ; }
Search pickup points.

@param int $postcode
@param string $street_address
@param string $country
@param string $service_provider Limits results for to certain providers possible values: Posti, Matkahuolto, Db Schenker.
@param int $limit 1 - 15
@return mixed
Search pickup points .