parse for the right nearest output coordinate

This commit is contained in:
karenzshea 2016-03-29 18:13:21 -04:00 committed by Patrick Niklaus
parent 8621b1890e
commit 6ae3315bb9

View File

@ -17,7 +17,7 @@ module.exports = function () {
if (response.statusCode === 200 && response.body.length) {
var json = JSON.parse(response.body);
coord = json.mapped_coordinate;
coord = json.waypoints[0].location;
var got = { in: row.in, out: row.out };