parseLocation: null as fallback station name

This commit is contained in:
Jannis R 2018-05-07 11:48:08 +02:00 committed by Jannis Redmann
parent 7541bcae66
commit 57f3cdb7e0

View file

@ -19,7 +19,7 @@ const parseLocation = (profile, l, lines) => {
const station = { const station = {
type: 'station', type: 'station',
id: l.extId, id: l.extId,
name: profile.parseStationName(l.name), name: l.name ? profile.parseStationName(l.name) : null,
location: 'number' === typeof res.latitude ? res : null location: 'number' === typeof res.latitude ? res : null
} }