Open birneamstiel opened 5 years ago
I built vbb-short-station-name
(which shortens common parts like (Berlin)
and -Platz
), tokenize-vbb-station-name
(which expands and normalises these parts) and vbb-stations-autocomplete
(which provides a fuzzy search over all VBB stations).
While the implementation is in JavaScript, we could
3.vbb.transport.rest/stops?query=...
stdin
/stdout
Description:
Right now data/lines.json contains station names following this sample
S+U Alexanderplatz Bhf (Berlin)
. Messages contain usually significantly shorter station names (e.galexanderplatz
) which increases the Levenshtein distance and decreases the accuracy.Proposal:
A quick fix would be adding shortened station names to the
lines.json
file. Removing the U/S prefix and (Berlin) suffix would decrease the Levenshtein distance significantly.