mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 16:59:51 +00:00
Include network with Line.
This commit is contained in:
parent
39008afc0b
commit
2038a740e2
23 changed files with 446 additions and 418 deletions
|
@ -328,28 +328,28 @@ public class InvgProvider extends AbstractHafasProvider
|
|||
if (mBus.matches())
|
||||
{
|
||||
final String label = mBus.group(1);
|
||||
return new Line(null, Product.BUS, label, lineStyle(null, Product.BUS, label));
|
||||
return new Line(null, null, Product.BUS, label, lineStyle(null, Product.BUS, label));
|
||||
}
|
||||
|
||||
final Matcher mNachtbus = P_NORMALIZE_LINE_NACHTBUS.matcher(line);
|
||||
if (mNachtbus.matches())
|
||||
{
|
||||
final String label = "N" + mNachtbus.group(1);
|
||||
return new Line(null, Product.BUS, label, lineStyle(null, Product.BUS, label));
|
||||
return new Line(null, null, Product.BUS, label, lineStyle(null, Product.BUS, label));
|
||||
}
|
||||
|
||||
final Matcher mBusS = P_NORMALIZE_LINE_BUS_S.matcher(line);
|
||||
if (mBusS.matches())
|
||||
{
|
||||
final String label = "S" + mBusS.group(1);
|
||||
return new Line(null, Product.BUS, label, lineStyle(null, Product.BUS, label));
|
||||
return new Line(null, null, Product.BUS, label, lineStyle(null, Product.BUS, label));
|
||||
}
|
||||
|
||||
final Matcher mBusX = P_NORMALIZE_LINE_BUS_X.matcher(line);
|
||||
if (mBusX.matches())
|
||||
{
|
||||
final String label = "X" + mBusX.group(1);
|
||||
return new Line(null, Product.BUS, label, lineStyle(null, Product.BUS, label));
|
||||
return new Line(null, null, Product.BUS, label, lineStyle(null, Product.BUS, label));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue