protected function generateAddress(DealerEvent $event)
    {
        $dealer = $event->getDealer();
        $address = $dealer->getAddress1();
        if ($dealer->getAddress2()) {
            $address .= " " . $dealer->getAddress2();
        }
        $address .= " " . $dealer->getZipcode() . " " . $dealer->getCity();
        $address = str_replace(" ", "+", $address);
        return $address;
    }
protected function generateAddress(DealerEvent $event)
    {
        $dealer = $event->getDealer();
        $address = $dealer->getAddress1();
        if ($dealer->getAddress2()) {
            $address .= " " . $dealer->getAddress2();
        }
        $address .= " " . $dealer->getZipcode() . " " . $dealer->getCity();
        $address = str_replace(" ", "+", $address);
        return $address;
    }
protected function generateAddress ( DealerEvent $ event ) { $ dealer = $ event -> getDealer ( ) ; $ address = $ dealer -> getAddress1 ( ) ; if ( $ dealer -> getAddress2 ( ) ) { $ address .= " " . $ dealer -> getAddress2 ( ) ; } $ address .= " " . $ dealer -> getZipcode ( ) . " " . $ dealer -> getCity ( ) ; $ address = str_replace ( " " , "+" , $ address ) ; return $ address ; }
Generate Address for Google API request
@param DealerEvent $event
@return string
Generate Address for Google API request