src/GoogleMapAPI.php
function addPolyLineByAddress($address1,$address2,$id=false,$color='',$weight=0,$opacity=0) {
        if(($_geocode1 = $this->getGeocode($address1)) === false)
            return false;
        if(($_geocode2 = $this->getGeocode($address2)) === false)
            return false;
        return $this->addPolyLineByCoords($_geocode1['lon'],$_geocode1['lat'],$_geocode2['lon'],$_geocode2['lat'],$id,$color,$weight,$opacity);
    }
function addPolyLineByAddress($address1,$address2,$id=false,$color='',$weight=0,$opacity=0) {
        if(($_geocode1 = $this->getGeocode($address1)) === false)
            return false;
        if(($_geocode2 = $this->getGeocode($address2)) === false)
            return false;
        return $this->addPolyLineByCoords($_geocode1['lon'],$_geocode1['lat'],$_geocode2['lon'],$_geocode2['lat'],$id,$color,$weight,$opacity);
    }
function addPolyLineByAddress ( $ address1 , $ address2 , $ id = false , $ color = '' , $ weight = 0 , $ opacity = 0 ) { if ( ( $ _geocode1 = $ this -> getGeocode ( $ address1 ) ) === false ) return false ; if ( ( $ _geocode2 = $ this -> getGeocode ( $ address2 ) ) === false ) return false ; return $ this -> addPolyLineByCoords ( $ _geocode1 [ 'lon' ] , $ _geocode1 [ 'lat' ] , $ _geocode2 [ 'lon' ] , $ _geocode2 [ 'lat' ] , $ id , $ color , $ weight , $ opacity ) ; }
adds a map polyline by address
if color, weight and opacity are not defined, use the google maps defaults

@param string $address1 the map address to draw from
@param string $address2 the map address to draw to
@param string $id An array id to use to append coordinates to a line
@param string $color the color of the line (format: #000000)
@param string $weight the weight of the line in pixels
@param string $opacity the line opacity (percentage)
@return bool|int Array id of newly added point or false
adds a map polyline by address if color weight and opacity are not defined use the google maps defaults