mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-15 09:00:36 +00:00
Parse CAR leg type in binary trips result (Hafas).
This commit is contained in:
parent
c39a49eed2
commit
addf81860e
1 changed files with 1 additions and 1 deletions
|
@ -1857,7 +1857,7 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
||||||
individualType = Trip.Individual.Type.WALK;
|
individualType = Trip.Individual.Type.WALK;
|
||||||
else if ("BIKE".equals(routingType))
|
else if ("BIKE".equals(routingType))
|
||||||
individualType = Trip.Individual.Type.BIKE;
|
individualType = Trip.Individual.Type.BIKE;
|
||||||
else if ("P+R".equals(routingType))
|
else if ("CAR".equals(routingType) || "P+R".equals(routingType))
|
||||||
individualType = Trip.Individual.Type.CAR;
|
individualType = Trip.Individual.Type.CAR;
|
||||||
else
|
else
|
||||||
throw new IllegalStateException("unknown routingType: " + routingType);
|
throw new IllegalStateException("unknown routingType: " + routingType);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue