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 dcb7651f40
commit b61beee95c

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 };