From 102eef5f20d246fb769571f59d6827e63f7342d9 Mon Sep 17 00:00:00 2001 From: "andreas.schildbach" Date: Thu, 2 Dec 2010 23:21:45 +0000 Subject: [PATCH] parse special AST syntax (Linz) git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@375 0924bc21-9374-b0fa-ee44-9ff1593b38f0 --- src/de/schildbach/pte/AbstractEfaProvider.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/de/schildbach/pte/AbstractEfaProvider.java b/src/de/schildbach/pte/AbstractEfaProvider.java index f05e908d..5da1aa18 100644 --- a/src/de/schildbach/pte/AbstractEfaProvider.java +++ b/src/de/schildbach/pte/AbstractEfaProvider.java @@ -1101,8 +1101,12 @@ public abstract class AbstractEfaProvider implements NetworkProvider final String destinationIdStr = pp.getAttributeValue(null, "destID"); final int destinationId = destinationIdStr.length() > 0 ? Integer.parseInt(destinationIdStr) : 0; final String destination = normalizeLocationName(pp.getAttributeValue(null, "destination")); - final String line = parseLine(pp.getAttributeValue(null, "motType"), pp.getAttributeValue(null, "shortname"), pp - .getAttributeValue(null, "name")); + String line; + if ("AST".equals(pp.getAttributeValue(null, "symbol"))) + line = "BAST"; + else + line = parseLine(pp.getAttributeValue(null, "motType"), pp.getAttributeValue(null, "shortname"), pp + .getAttributeValue(null, "name")); XmlPullUtil.enter(pp, "itdMeansOfTransport"); XmlPullUtil.exit(pp, "itdMeansOfTransport");