refactor function update model : My model: street_address, postal_code, latitude, longitude 

Controller (update):

    if @address.update(address_params)
           postal_code = address_params[:address_attributes][:postal_code]
           latitude, longitude =  get_coordinate(postal_code)
           @address.latitude = latitude
           @address.longitude = longitude
           @address.save
    end

I want if the function get_coordinate can't get the coordinate the operation update will return false.

How can I refactor this piece of code ?
