mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-15 09:00:36 +00:00
Fix location names for East of England and South West England.
This commit is contained in:
parent
a136e7911b
commit
fdf1a6ca2a
2 changed files with 20 additions and 0 deletions
|
@ -44,6 +44,16 @@ public class TlemProvider extends AbstractEfaProvider
|
|||
return NETWORK_ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String normalizeLocationName(final String name)
|
||||
{
|
||||
final String normalizedName = super.normalizeLocationName(name);
|
||||
if (normalizedName != null && normalizedName.endsWith(" ()"))
|
||||
return normalizedName.substring(0, normalizedName.length() - 3);
|
||||
else
|
||||
return normalizedName;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String parseLine(final String mot, final String symbol, final String name, final String longName, final String trainType,
|
||||
final String trainNum, final String trainName)
|
||||
|
|
|
@ -42,6 +42,16 @@ public class TlswProvider extends AbstractEfaProvider
|
|||
return NETWORK_ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String normalizeLocationName(final String name)
|
||||
{
|
||||
final String normalizedName = super.normalizeLocationName(name);
|
||||
if (normalizedName != null && normalizedName.endsWith(" ()"))
|
||||
return normalizedName.substring(0, normalizedName.length() - 3);
|
||||
else
|
||||
return normalizedName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection<Product> defaultProducts()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue