Skip to content

Instantly share code, notes, and snippets.

@tylerpearson
tylerpearson / convert_to_json.rb
Last active December 29, 2015 02:39
Durham health inspection data with coordinates as geoJSON https://github.com/codefordurham/Durham-Data/tree/master/Restaurants
require 'pp'
require 'active_support/all'
# require 'colored'
require 'json'
results = JSON.parse(File.read("../json/raw/dump-data-science.json"))
geo_json = {
:type => "FeatureCollection",
:features => []