You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a station (i.e. a stop with stops.location_type=1) is defined in this field, it is assumed that all of its platforms (i.e. all stops with stops.location_type=0 that have this station defined as stops.parent_station) are part of the same area.
Observed behavior
10:55:33.343 ERROR [main] (OTPMain.java:61) An uncaught error occurred inside OTP: Expected location_type 0, but got 1 for stops.txt entry <Stop sound-transit_SS02>
java.lang.IllegalArgumentException: Expected location_type 0, but got 1 for stops.txt entry <Stop sound-transit_SS02>
at org.opentripplanner.gtfs.mapping.StopMapper.assertLocationTypeIsStop(StopMapper.java:103)
at org.opentripplanner.gtfs.mapping.StopMapper.doMap(StopMapper.java:45)
at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1228)
at org.opentripplanner.gtfs.mapping.StopMapper.map(StopMapper.java:41)
at org.opentripplanner.gtfs.mapping.StopAreaMapper.doMap(StopAreaMapper.java:59)
at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1228)
at org.opentripplanner.gtfs.mapping.StopAreaMapper.map(StopAreaMapper.java:49)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1787)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at org.opentripplanner.framework.collection.MapUtils.mapToList(MapUtils.java:32)
at org.opentripplanner.gtfs.mapping.StopAreaMapper.map(StopAreaMapper.java:44)
at org.opentripplanner.gtfs.mapping.GTFSToOtpTransitServiceMapper.mapStopTripAndRouteDataIntoBuilder(GTFSToOtpTransitServiceMapper.java:169)
at org.opentripplanner.gtfs.graphbuilder.GtfsModule.buildGraph(GtfsModule.java:142)
at org.opentripplanner.graph_builder.GraphBuilder.run(GraphBuilder.java:194)
at org.opentripplanner.standalone.OTPMain.startOTPServer(OTPMain.java:144)
at org.opentripplanner.standalone.OTPMain.main(OTPMain.java:56)
10:55:33.349 INFO [server-shutdown-info] (OtpStartupInfo.java:43) OTP SHUTTING DOWN (version: 2.6.0, ser.ver.id: 157, commit: 155d19bd293e260488fca8b3662788b7e29411eb, branch: master)
If areas.txt and stop_areas.txt are removed from the GTFS, this error no longer occurs.
Version of OTP used (exact commit hash or JAR name)
2.6.0
Data sets in use (links to GTFS and OSM PBF files)
GTFS: Sound Transit (Seattle, WA USA)
OSM: Washingon, USA (Can't host my own file, but this one covers the necessary area)
Expected behavior
GTFS spec for this file be followed:
Observed behavior
If
areas.txt
andstop_areas.txt
are removed from the GTFS, this error no longer occurs.Version of OTP used (exact commit hash or JAR name)
2.6.0
Data sets in use (links to GTFS and OSM PBF files)
GTFS: Sound Transit (Seattle, WA USA)
OSM: Washingon, USA (Can't host my own file, but this one covers the necessary area)
Command line used to start OTP
java -Xms58g -Xmx58g -jar otp.jar --loadStreet --save ./
Router config and graph build config JSON
otp-config.json
build-config.json
router-config.json
Steps to reproduce the problem
The text was updated successfully, but these errors were encountered: