bubbaspaarx
bubbaspaarx

Reputation: 726

rails geocoder gem - want to geocode_by :google_place_id

I am using the rails geocoder gem combined with a f/e solution that sends through the google_place_id. What I would like to do is configure geocoder to geocode by the place_id. I have tried several things to tell geocoder that I am using a place_id but it fails to accept it.

Tried this

geocoded_by :place_id, params: {google_place_id: true}

and this

geocoded_by :place_id, google_place_id: true

and put the option in the initializer to no avail

I know it works as I have used this to retrieve location information

Geocoder.search("<PLACE ID>", {google_place_id: true})

How do I configure geocoder to use the google_place_id?

Upvotes: 0

Views: 115

Answers (0)

Related Questions