Commit 3d88fae8 authored by Volker Krause's avatar Volker Krause
Browse files

Pass along floating rented vehicle data correctly

parent 03ca80c7
......@@ -430,6 +430,8 @@ JourneySection OpenTripPlannerParser::parseJourneySection(const QJsonObject &obj
RentalVehicle v;
if (from.rentalVehicleStation().network().isValid()) {
v.setNetwork(from.rentalVehicleStation().network());
} else if (from.type() == Location::RentedVehicle) {
v = from.data().value<RentalVehicle>();
} else if (to.rentalVehicleStation().network().isValid()) {
v.setNetwork(to.rentalVehicleStation().network());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment