,I know how to transform the data I want into one array.
Ie from a model holding geocordinates in one line:
Place.all.map(&:latitude)
[12.34, 12.34, ...]
How can I transform it to make a nested dual array with both latitude and longitude
ie [[12.34,23.34],[23.45,12,23],...]