mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 19:58:49 +00:00
fixed LF in arrival
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@104 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
672f13519f
commit
c80b71743d
2 changed files with 12 additions and 2 deletions
|
@ -193,7 +193,7 @@ public class OebbProvider implements NetworkProvider
|
||||||
private static final Pattern P_CONNECTION_DETAILS_FINE = Pattern.compile(".*?" //
|
private static final Pattern P_CONNECTION_DETAILS_FINE = Pattern.compile(".*?" //
|
||||||
+ "<td headers=\"hafasDTL\\d+_Stop\".*?>\n" //
|
+ "<td headers=\"hafasDTL\\d+_Stop\".*?>\n" //
|
||||||
+ "(?:<a href=\"http://fahrplan\\.oebb\\.at/bin/stboard\\.exe/dn.*?input=.*?%23(\\d+)&.*?>)?" // departureId
|
+ "(?:<a href=\"http://fahrplan\\.oebb\\.at/bin/stboard\\.exe/dn.*?input=.*?%23(\\d+)&.*?>)?" // departureId
|
||||||
+ "([^<]*?)<.*?" // departure
|
+ "([^\n<]*).*?" // departure
|
||||||
+ "<td headers=\"hafasDTL\\d+_Date\".*?>\n(?:(\\d{2}\\.\\d{2}\\.\\d{2})| )\n</td>.*?" // departureDate
|
+ "<td headers=\"hafasDTL\\d+_Date\".*?>\n(?:(\\d{2}\\.\\d{2}\\.\\d{2})| )\n</td>.*?" // departureDate
|
||||||
+ "<td headers=\"hafasDTL\\d+_TimeDep\".*?>(?:(\\d{2}:\\d{2})| )</td>.*?" // departureTime
|
+ "<td headers=\"hafasDTL\\d+_TimeDep\".*?>(?:(\\d{2}:\\d{2})| )</td>.*?" // departureTime
|
||||||
+ "<td headers=\"hafasDTL\\d+_Platform\".*?>\\s*(?: |(.*?))\\s*</td>.*?" // departurePosition
|
+ "<td headers=\"hafasDTL\\d+_Platform\".*?>\\s*(?: |(.*?))\\s*</td>.*?" // departurePosition
|
||||||
|
@ -201,7 +201,7 @@ public class OebbProvider implements NetworkProvider
|
||||||
+ "(?:<a href=\"http://fahrplan\\.oebb\\.at/bin/traininfo\\.exe/dn.*?>(.*?)</a>.*?)?" // line
|
+ "(?:<a href=\"http://fahrplan\\.oebb\\.at/bin/traininfo\\.exe/dn.*?>(.*?)</a>.*?)?" // line
|
||||||
+ "<td headers=\"hafasDTL\\d+_Stop\".*?>\n" //
|
+ "<td headers=\"hafasDTL\\d+_Stop\".*?>\n" //
|
||||||
+ "(?:<a href=\"http://fahrplan\\.oebb\\.at/bin/stboard\\.exe/dn.*?input=.*?%23(\\d+)&.*?>)?" // arrivalId
|
+ "(?:<a href=\"http://fahrplan\\.oebb\\.at/bin/stboard\\.exe/dn.*?input=.*?%23(\\d+)&.*?>)?" // arrivalId
|
||||||
+ "([^<]*?)<.*?" // arrival
|
+ "([^\n<]*).*?" // arrival
|
||||||
+ "<td headers=\"hafasDTL\\d+_Date\".*?>\n(?:(\\d{2}\\.\\d{2}\\.\\d{2})| )\n</td>.*?" // arrivalDate
|
+ "<td headers=\"hafasDTL\\d+_Date\".*?>\n(?:(\\d{2}\\.\\d{2}\\.\\d{2})| )\n</td>.*?" // arrivalDate
|
||||||
+ "<td headers=\"hafasDTL\\d+_TimeDep\".*?>(?:(\\d{2}:\\d{2})| )</td>.*?" // arrivalTime
|
+ "<td headers=\"hafasDTL\\d+_TimeDep\".*?>(?:(\\d{2}:\\d{2})| )</td>.*?" // arrivalTime
|
||||||
+ "<td headers=\"hafasDTL\\d+_Platform\".*?>\\s*(?: |(.*?))\\s*</td>.*?" // arrivalPosition
|
+ "<td headers=\"hafasDTL\\d+_Platform\".*?>\\s*(?: |(.*?))\\s*</td>.*?" // arrivalPosition
|
||||||
|
|
|
@ -61,4 +61,14 @@ public class OebbProviderLiveTest
|
||||||
final QueryConnectionsResult moreResult = provider.queryMoreConnections(result.linkLater);
|
final QueryConnectionsResult moreResult = provider.queryMoreConnections(result.linkLater);
|
||||||
System.out.println(moreResult);
|
System.out.println(moreResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void connectionWithFootway2() throws Exception
|
||||||
|
{
|
||||||
|
final QueryConnectionsResult result = provider.queryConnections(LocationType.ANY, "Wien, Krottenbachstraße 110!", null, null,
|
||||||
|
LocationType.ANY, "Wien, Meidlinger Hauptstraße 1!", new Date(), true);
|
||||||
|
System.out.println(result);
|
||||||
|
final QueryConnectionsResult moreResult = provider.queryMoreConnections(result.linkLater);
|
||||||
|
System.out.println(moreResult);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue