mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 17:39:49 +00:00
In mobile trips query (EFA), skip parsing of <seqroutes> and make <tcs> optional.
This commit is contained in:
parent
bae806d5cc
commit
05b5a56cd5
1 changed files with 21 additions and 15 deletions
|
@ -3057,10 +3057,11 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
|||
|
||||
XmlPullUtil.skipExit(pp, "ls");
|
||||
|
||||
XmlPullUtil.require(pp, "tcs");
|
||||
XmlPullUtil.optSkip(pp, "seqroutes");
|
||||
|
||||
final List<Fare> fares;
|
||||
|
||||
if (XmlPullUtil.test(pp, "tcs"))
|
||||
{
|
||||
if (!pp.isEmptyElementTag())
|
||||
{
|
||||
XmlPullUtil.enter(pp, "tcs");
|
||||
|
@ -3082,6 +3083,11 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
|||
|
||||
XmlPullUtil.next(pp);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
fares = null;
|
||||
}
|
||||
|
||||
final Trip trip = new Trip(tripId, firstDepartureLocation, lastArrivalLocation, legs, fares, null, numChanges);
|
||||
trips.add(trip);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue