mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 01:19:49 +00:00
fixed splitting name and place for Mainz
This commit is contained in:
parent
1548523cd2
commit
7f62aa854e
1 changed files with 5 additions and 1 deletions
|
@ -140,8 +140,12 @@ public class RmvProvider extends AbstractHafasProvider
|
|||
protected String[] splitPlaceAndName(final String name)
|
||||
{
|
||||
for (final String place : PLACES)
|
||||
if (name.startsWith(place + " ") || name.startsWith(place + "-"))
|
||||
{
|
||||
if (name.startsWith(place + " - "))
|
||||
return new String[] { place, name.substring(place.length() + 3) };
|
||||
else if (name.startsWith(place + " ") || name.startsWith(place + "-"))
|
||||
return new String[] { place, name.substring(place.length() + 1) };
|
||||
}
|
||||
|
||||
return super.splitPlaceAndName(name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue