cleanup of various normalizeType/normalizeLine methods

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@631 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2011-05-08 23:15:02 +00:00
parent 76c9ba2edd
commit f5a7ca06dd
13 changed files with 257 additions and 455 deletions

View file

@ -139,21 +139,6 @@ public class VbbProvider extends AbstractHafasProvider
throw new IllegalStateException("cannot normalize line " + line);
}
@Override
protected char normalizeType(final String type)
{
final String ucType = type.toUpperCase();
if ("D".equals(ucType)) // DB Regio AG, e.g. Berlin - Prag
return 'I';
final char t = normalizeCommonTypes(ucType);
if (t != 0)
return t;
return 0;
}
public QueryDeparturesResult queryDepartures(final int stationId, final int maxDepartures, final boolean equivs) throws IOException
{
final StringBuilder uri = new StringBuilder();