changed directions to walking / public transport

This commit is contained in:
Martin Donnelly 2018-10-11 17:19:16 +01:00
parent 3651c4fb67
commit 2b7c9b3be0

View File

@ -43,10 +43,13 @@ function reduceEstDirections(body = '') {
obj.className = 'trafficNone';
}
for (const item of route) {
const street = item.street.split(',');
if (street[0] !== '') streets.push(street[0]);
}
for (const item of route)
if (item.street !== null) {
const street = item.street.split(',');
if (street[0] !== '') streets.push(street[0]);
}
obj.streets = uniq(streets);
}