mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 19:59:50 +00:00
AbstractHafasClientInterfaceProvider: Parse 'DEVI' connection section type.
This commit is contained in:
parent
12f597fe78
commit
7117f9e933
1 changed files with 4 additions and 0 deletions
|
@ -633,6 +633,10 @@ public abstract class AbstractHafasClientInterfaceProvider extends AbstractHafas
|
|||
|
||||
leg = new Trip.Public(line, destination, departureStop, arrivalStop, intermediateStops, null,
|
||||
message);
|
||||
} else if ("DEVI".equals(secType)) {
|
||||
leg = new Trip.Individual(Trip.Individual.Type.TRANSFER, departureStop.location,
|
||||
departureStop.getDepartureTime(), arrivalStop.location, arrivalStop.getArrivalTime(),
|
||||
null, 0);
|
||||
} else if ("WALK".equals(secType) || "TRSF".equals(secType)) {
|
||||
final JSONObject gis = sec.getJSONObject("gis");
|
||||
final int distance = gis.optInt("dist", 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue