mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 08:40:29 +00:00
VMT: Remove 'Zug' from station names.
This commit is contained in:
parent
37a7f60329
commit
3766972f7e
1 changed files with 4 additions and 1 deletions
|
@ -43,7 +43,10 @@ public class VmtProvider extends AbstractHafasMobileProvider {
|
|||
private static final String[] PLACES = { "Erfurt", "Jena", "Gera", "Weimar", "Gotha" };
|
||||
|
||||
@Override
|
||||
protected String[] splitStationName(final String name) {
|
||||
protected String[] splitStationName(String name) {
|
||||
if (name.endsWith(" [Zug]"))
|
||||
name = name.substring(0, name.length() - 6);
|
||||
|
||||
for (final String place : PLACES) {
|
||||
if (name.startsWith(place + ", "))
|
||||
return new String[] { place, name.substring(place.length() + 2) };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue