Currently, as an app making, Ruby on Rails is making an app that buyers go to get based on the seller's address.
At that time, I would like to utilize the google map API and make the purchaser the center point of the initial map.
The seller and the buyer are creating different models using gem's devise.
I am using gem's geocoder to display the address on google map.

However, I am trying to register as a user using geocoder, but the value is not entered in the latitude/longitude column.
As a result, I can't decide the center point of the map. Since the address has been registered,
I want to put a value in: latitude,: longitude

I want to achieve
Get the user's latitude and longitude using gem's geocoder.
Since the address was created at the user registration stage, is it due to the controller?
In the first place, is the timing to acquire the latitude and longitude of geocoder different for new registration with devise?


class Exhibition</pre>
class Exhibitions :: RegistrationsController<Devise :: RegistrationsController
  before_action: configure_sign_up_params, only: [: create]
  before_action: move_to_index
  def configure_sign_up_params
    devise_parameter_sanitizer.permit (: sign_up, keys: [: address,: city_number,: latitude,: longitude])
 create_table "exhibitions", options: "ENGINE = InnoDB DEFAULT CHARSET = utf8", force:: cascade do | t |
    t.string "email", default: "", null: false
    t.string "encrypted_password", default: "", null: false
    t.string "address", null: false
    t.string "city_number", default: "", null: false
    t.string "reset_password_token"
    t.datetime "reset_password_sent_at"
    t.datetime "remember_created_at"
    t.datetime "created_at", precision: 6, null: false
    t.datetime "updated_at", precision: 6, null: false
    t.float "latitude"
    t.float "longitude"
    t.index ["email"], name: "index_exhibitions_on_email", unique: true
    t.index ["reset_password_token"], name: "index_exhibitions_on_reset_password_token", unique: true
Geocoding API
Maps JavaScript API
What I tried

I messed with the controller, but created it with devise and adjusted devise_parameter_sanitizer at the time of user registration etc.