Hafas: Improve handling of station name suffixes.

This commit is contained in:
Andreas Schildbach 2015-01-09 14:43:57 +01:00
parent 593e032df4
commit 0122de4bb5
5 changed files with 49 additions and 20 deletions

View file

@ -248,6 +248,7 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
protected static final Pattern P_SPLIT_NAME_FIRST_COMMA = Pattern.compile("([^,]*), (.*)");
protected static final Pattern P_SPLIT_NAME_LAST_COMMA = Pattern.compile("(.*), ([^,]*)");
protected static final Pattern P_SPLIT_NAME_PAREN = Pattern.compile("(.*) \\((.{3,}?)\\)");
protected String[] splitStationName(final String name)
{