Skip to content

Exporting events to create reports from

Dr Kim Foale edited this page Feb 3, 2020 · 1 revision

Figuring out how to do Matlab heatmap stuff.

data = Event.joins(:address).where('addresses.neighbourhood_id': 1).pluck('addresses.postcode', 'addresses.latitude', 'addresses.longitude', :dtstart)
File.write('db/eventdump.csv', data.map(&:to_csv).join)
Clone this wiki locally