mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 00:09:55 +00:00
split place and name of Winterthur
This commit is contained in:
parent
44068bc491
commit
42a01f6560
1 changed files with 3 additions and 1 deletions
|
@ -123,7 +123,7 @@ public class ZvvProvider extends AbstractHafasProvider
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final String[] PLACES = { "Zürich" };
|
private static final String[] PLACES = { "Zürich", "Winterthur" };
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected String[] splitPlaceAndName(final String name)
|
protected String[] splitPlaceAndName(final String name)
|
||||||
|
@ -132,6 +132,8 @@ public class ZvvProvider extends AbstractHafasProvider
|
||||||
{
|
{
|
||||||
if (name.startsWith(place + ", "))
|
if (name.startsWith(place + ", "))
|
||||||
return new String[] { place, name.substring(place.length() + 2) };
|
return new String[] { place, name.substring(place.length() + 2) };
|
||||||
|
if (name.startsWith(place + " ") || name.startsWith(place + ","))
|
||||||
|
return new String[] { place, name.substring(place.length() + 1) };
|
||||||
}
|
}
|
||||||
|
|
||||||
return super.splitPlaceAndName(name);
|
return super.splitPlaceAndName(name);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue