changed directions to walking / public transport
This commit is contained in:
parent
3651c4fb67
commit
2b7c9b3be0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user