mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 09:19:57 +00:00
Hafas: Parse AdminCode line attribute.
This commit is contained in:
parent
7588431354
commit
4138966cf9
1 changed files with 5 additions and 1 deletions
|
@ -1837,6 +1837,7 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
int lineClass = 0;
|
||||
String lineCategory = null;
|
||||
String routingType = null;
|
||||
String lineNetwork = null;
|
||||
while (true)
|
||||
{
|
||||
final String key = strings.read(is);
|
||||
|
@ -1852,6 +1853,8 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
// lineOperator = strings.read(is);
|
||||
else if (key.equals("GisRoutingType"))
|
||||
routingType = strings.read(is);
|
||||
else if (key.equals("AdminCode"))
|
||||
lineNetwork = normalizeLineAdministration(strings.read(is));
|
||||
else
|
||||
is.skipBytes(2);
|
||||
}
|
||||
|
@ -2026,7 +2029,8 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
else
|
||||
lineProduct = normalizeType(lineCategory);
|
||||
|
||||
final Line line = newLine(lineProduct, normalizeLineName(lineName), lineComment, lineAttrs.toArray(new Line.Attr[0]));
|
||||
final Line line = newLine(lineNetwork, lineProduct, normalizeLineName(lineName), lineComment,
|
||||
lineAttrs.toArray(new Line.Attr[0]));
|
||||
|
||||
final Location direction;
|
||||
if (directionStr != null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue