replace strange '$XINT$' tokens in location names of San Francisco

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@605 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2011-05-06 16:52:20 +00:00
parent dc0f0ea8cc
commit e26eff18c2
2 changed files with 13 additions and 4 deletions

View file

@ -913,7 +913,7 @@ public abstract class AbstractEfaProvider implements NetworkProvider
return 'R' + name;
if ("CAPITOL".equals(name)) // San Francisco
return 'R' + name;
if ("Train".equals(noTrainName)) // San Francisco
if ("Train".equals(noTrainName) || "Train".equals(type)) // San Francisco
return "R" + name;
if ("Regional Train :".equals(longName))
return "R";
@ -1271,7 +1271,7 @@ public abstract class AbstractEfaProvider implements NetworkProvider
private static final Pattern P_STATION_NAME_WHITESPACE = Pattern.compile("\\s+");
protected static String normalizeLocationName(final String name)
protected String normalizeLocationName(final String name)
{
if (name == null || name.length() == 0)
return null;