Jonatas  Eduardo
Jonatas Eduardo

Reputation: 874

How to use JSONB with Ruby Geocoder in Rails?

My latitude and longitude columns are inside a JSONB type column named geographic, like this:

geographic: {
  coordinates: [0, 0],
}

In Geocoder config I need to set column names (geocoded_by :address, latitude: :lat, longitude: :long) to use methods like nearbys, but Geocoder do not recognize JSONB type columns.

Upvotes: 0

Views: 51

Answers (0)

Related Questions