mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 17:29:51 +00:00
fixed special case of position
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@121 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
9458f487bf
commit
4f174fe3f9
2 changed files with 24 additions and 3 deletions
|
@ -442,12 +442,12 @@ public final class BahnProvider implements NetworkProvider
|
|||
+ "Abfahrt (\\d+:\\d+)\\n?Uhr, (\\d+\\.\\d+\\.\\d+).*?" // currentTime
|
||||
, Pattern.DOTALL);
|
||||
private static final Pattern P_DEPARTURES_COARSE = Pattern.compile("<div class=\"sqdetailsDep trow\">\n(.+?)</div>", Pattern.DOTALL);
|
||||
private static final Pattern P_DEPARTURES_FINE = Pattern.compile(".*?" //
|
||||
static final Pattern P_DEPARTURES_FINE = Pattern.compile(".*?" //
|
||||
+ "<span class=\"bold\">(.*?)</span>.*?" // line
|
||||
+ ">>\n\\s*(.+?)\\s*\n<br />\n" // destination
|
||||
+ "<span class=\"bold\">(\\d{1,2}:\\d{2})</span>" // time
|
||||
+ "(?: <span class=\"red\">ca. ([+-]?\\d+)</span>)?" // delay
|
||||
+ "(?:, (Gl\\. " + ParserUtils.P_PLATFORM + "))?" // position
|
||||
+ "(?:(?:, )?(Gl\\. " + ParserUtils.P_PLATFORM + "))?" // position
|
||||
, Pattern.DOTALL);
|
||||
private static final Pattern P_DEPARTURES_URI_STATION_ID = Pattern.compile("input=(\\d+)");
|
||||
|
||||
|
@ -770,6 +770,8 @@ public final class BahnProvider implements NetworkProvider
|
|||
return "RZr" + number;
|
||||
if (type.equals("N")) // Frankreich, Tours, Orléans
|
||||
return "RN" + number;
|
||||
if (type.equals("VE")) // Lutherstadt Wittenberg
|
||||
return "RVE" + number;
|
||||
|
||||
if (type.equals("S"))
|
||||
return "SS" + number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue