Skip to content

Commit

Permalink
Update NeTEx 1.15 (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
vpaturet authored Nov 30, 2023
1 parent 199b59c commit 3024943
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
<jdk.version>17</jdk.version>

<commons-io.version>2.15.0</commons-io.version>
<netex-parser-java.version>3.0.4</netex-parser-java.version>
<netex-java-model.version>2.0.14</netex-java-model.version>
<netex-parser-java.version>3.1.3</netex-parser-java.version>
<netex-java-model.version>2.0.15</netex-java-model.version>
<onebusaway.version>1.4.9</onebusaway.version>
<jts.version>1.19.0</jts.version>
<slf4j.version>2.0.9</slf4j.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public OperatingPeriod getOperatingPeriodByDayTypeAssignment(
}
OperatingPeriod operatingPeriod = netexEntitiesIndex
.getOperatingPeriodIndex()
.get(dayTypeAssignment.getOperatingPeriodRef().getRef());
.get(dayTypeAssignment.getOperatingPeriodRef().getValue().getRef());
if (operatingPeriod == null) {
throw new GtfsExportException(
"OperatingPeriod not found: " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ public static int getGtfsExtendedRouteType(Line line) {
* @return the GTFS extended route type code.
*/
public static int getGtfsExtendedRouteType(
VehicleModeEnumeration transportMode
AllVehicleModesOfTransportEnumeration transportMode
) {
return getGtfsExtendedRouteType(transportMode.value(), null).getValue();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,9 @@ private DayTypeAssignment createTestDayTypeAssignmentWithPeriod(
NETEX_FACTORY.createOperatingPeriodRefStructure();
operatingPeriodRef.setRef(operatingPeriodId);

dayTypeAssignment.setOperatingPeriodRef(operatingPeriodRef);
dayTypeAssignment.setOperatingPeriodRef(
NETEX_FACTORY.createOperatingPeriodRef(operatingPeriodRef)
);
return dayTypeAssignment;
}

Expand Down

0 comments on commit 3024943

Please sign in to comment.