Hi everyone! I’m trying to create a CRUD of geoJSON polygons. I want to store coordinates inside jsonb field.
What’s the correct way to do this?
[
[
[100.0, 0.0],
[101.0, 0.0],
[101.0, 1.0],
[100.0, 1.0],
[100.0, 0.0]
]
]
Can I use embeds_many
for nested arrays? Or should I use something like
field :coordinates, {:array, {:array, {:array, :float}}}