public function getAddress()
    {
        $address = null;
        if ($data = $this->getLocationData()) {
            $address = Address::create();
            $address->update($data);
            $address->ID = 0; //ensure not in db
        }

        return $address;
    }
public function getAddress()
    {
        $address = null;
        if ($data = $this->getLocationData()) {
            $address = Address::create();
            $address->update($data);
            $address->ID = 0; //ensure not in db
        }

        return $address;
    }
public function getAddress ( ) { $ address = null ; if ( $ data = $ this -> getLocationData ( ) ) { $ address = Address :: create ( ) ; $ address -> update ( $ data ) ; $ address -> ID = 0 ; //ensure not in db } return $ address ; }
Get location of user

@param  Address $address location
@return null|Address
Get location of user