mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 00:09:55 +00:00
calculate representations of 'all products' in superclass
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@615 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
3097a52493
commit
7dfdd26481
17 changed files with 67 additions and 49 deletions
|
@ -50,7 +50,7 @@ public final class BahnProvider extends AbstractHafasProvider
|
|||
|
||||
public BahnProvider()
|
||||
{
|
||||
super("http://reiseauskunft.bahn.de/bin/extxml.exe", null);
|
||||
super("http://reiseauskunft.bahn.de/bin/extxml.exe", 14, null);
|
||||
}
|
||||
|
||||
public NetworkId id()
|
||||
|
@ -108,7 +108,8 @@ public final class BahnProvider extends AbstractHafasProvider
|
|||
else
|
||||
{
|
||||
final String uri = API_BASE + "query.exe/dox" + "?performLocating=2&tpl=stopsnear&look_maxdist=" + (maxDistance > 0 ? maxDistance : 5000)
|
||||
+ "&look_stopclass=1023" + "&look_x=" + lon + "&look_y=" + lat;
|
||||
+ "&look_stopclass=" + allProductsInt() + "&look_x=" + lon + "&look_y=" + lat;
|
||||
System.out.println(uri);
|
||||
final CharSequence page = ParserUtils.scrape(uri);
|
||||
|
||||
final Matcher m = P_NEARBY_STATIONS_BY_COORDINATE.matcher(page);
|
||||
|
@ -496,7 +497,7 @@ public final class BahnProvider extends AbstractHafasProvider
|
|||
{
|
||||
final StringBuilder uri = new StringBuilder();
|
||||
uri.append(API_BASE).append("bhftafel.exe/dn");
|
||||
uri.append("?productsFilter=11111111111111");
|
||||
uri.append("?productsFilter=").append(allProductsString());
|
||||
uri.append("&boardType=dep");
|
||||
uri.append("&maxJourneys=50"); // ignore maxDepartures because result contains other stations
|
||||
uri.append("&start=yes");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue