Matrix times are on seconds now. Removing POST matrix tests

This commit is contained in:
Jeff Miccolis
2016-03-29 17:28:55 -04:00
committed by Patrick Niklaus
parent 2f793473cc
commit eba5f7d275
5 changed files with 48 additions and 138 deletions
+7 -8
View File
@@ -43,14 +43,13 @@ module.exports = function () {
if (err) return callback(err);
if (!response.body.length) return callback(new Error('Invalid response body'));
var jsonResult = JSON.parse(response.body),
result = jsonResult['distance_table'].map((row) => {
var hashes = {};
row.forEach((c, j) => {
hashes[tableRows[0][j+1]] = c;
});
return hashes;
});
var json = JSON.parse(response.body);
var result = json['durations'].map(row => {
var hashes = {};
row.forEach((v, i) => hashes[tableRows[0][i+1]] = v);
return hashes;
});
var testRow = (row, ri, cb) => {
var ok = true;