aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKumar Damani <kumar.damani@mail.utoronto.ca>2019-03-26 21:29:06 +0000
committerKumar Damani <kumar.damani@mail.utoronto.ca>2019-03-26 21:29:06 +0000
commitdbe495f4b3057f476060243503c20f299ac9b385 (patch)
tree3847d8b8eedb37d2706ba78a6924133407aca419
parent2ec60276238f0b5d402ec2a5d02321e2e4c99303 (diff)
bring in the data folder inside the web folder as its a hard dependency for the index.js, so heroku needs itfix/25
-rw-r--r--web/data/Neighbourhoods.geojson (renamed from data/Neighbourhoods.geojson)0
-rw-r--r--web/routes/index.js2
2 files changed, 1 insertions, 1 deletions
diff --git a/data/Neighbourhoods.geojson b/web/data/Neighbourhoods.geojson
index f17b7c3..f17b7c3 100644
--- a/data/Neighbourhoods.geojson
+++ b/web/data/Neighbourhoods.geojson
diff --git a/web/routes/index.js b/web/routes/index.js
index 0b32d0e..1ecce83 100644
--- a/web/routes/index.js
+++ b/web/routes/index.js
@@ -4,7 +4,7 @@ var Mockpoints = require('../models/mockpoints');
var Points = require('../models/points');
var fs = require("fs");
var GeoJsonGeometriesLookup = require('geojson-geometries-lookup');
-var torontoNeighbourhoords = JSON.parse(fs.readFileSync(__dirname + '/../../data/Neighbourhoods.geojson', "utf8"));
+var torontoNeighbourhoords = JSON.parse(fs.readFileSync(__dirname + '/../data/Neighbourhoods.geojson', "utf8"));
const connections = [];
const glookup = new GeoJsonGeometriesLookup(torontoNeighbourhoords);