mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 01:10:02 +00:00
Hafas: Improve handling of station name suffixes.
This commit is contained in:
parent
593e032df4
commit
0122de4bb5
5 changed files with 49 additions and 20 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue