Skip to content

Commit

Permalink
Revert "Merged in flex direct transfer work"
Browse files Browse the repository at this point in the history
This reverts commit d0c503a.
  • Loading branch information
sdjacobs committed Mar 8, 2017
1 parent d0c503a commit d3c3e9c
Show file tree
Hide file tree
Showing 18 changed files with 117 additions and 627 deletions.
32 changes: 15 additions & 17 deletions pom.xml
Expand Up @@ -10,9 +10,9 @@
<packaging>jar</packaging> <packaging>jar</packaging>


<scm> <scm>
<connection>scm:git:http://github.com/camsys/OpenTripPlanner.git</connection> <connection>scm:git:http://github.com/opentripplanner/OpenTripPlanner.git</connection>
<developerConnection>scm:git:ssh://git@github.com/camsys/OpenTripPlanner.git</developerConnection> <developerConnection>scm:git:ssh://git@github.com/opentripplanner/OpenTripPlanner.git</developerConnection>
<url>http://github.com/camsys/OpenTripPlanner</url> <url>http://github.com/opentripplanner/OpenTripPlanner</url>
</scm> </scm>


<properties> <properties>
Expand All @@ -24,15 +24,11 @@


<distributionManagement> <distributionManagement>
<repository> <repository>
<id>releases-obaweb-repo</id> <!-- Also used as snapshotRepository by default -->
<name>OneBusAway OBAWEB Release Repo</name> <id>conveyal-maven-repo</id>
<url>http://repo.obaweb.org:8080/archiva/repository/releases/</url> <name>Conveyal Maven Repository</name>
<url>s3://maven.conveyal.com/</url>
</repository> </repository>
<snapshotRepository>
<id>snapshots-obaweb-repo</id>
<name>OneBusAway OBAWEB Snapshot Repo</name>
<url>http://repo.obaweb.org:8080/archiva/repository/snapshots/</url>
</snapshotRepository>
</distributionManagement> </distributionManagement>


<build> <build>
Expand Down Expand Up @@ -365,11 +361,6 @@
<name>bintray</name> <name>bintray</name>
<url>http://dl.bintray.com/andimarek/graphql-java</url> <url>http://dl.bintray.com/andimarek/graphql-java</url>
</repository> </repository>
<repository>
<id>snapshots-obaweb-repo</id>
<name>OneBusAway OBAWEB Snapshot Repo</name>
<url>http://repo.obaweb.org:8080/archiva/repository/snapshots/</url>
</repository>
</repositories> </repositories>


<dependencies> <dependencies>
Expand Down Expand Up @@ -582,7 +573,7 @@
<dependency> <dependency>
<groupId>org.onebusaway</groupId> <groupId>org.onebusaway</groupId>
<artifactId>onebusaway-gtfs</artifactId> <artifactId>onebusaway-gtfs</artifactId>
<version>1.3.5-vt-SNAPSHOT</version> <version>1.3.5-conveyal-SNAPSHOT-2</version>
</dependency> </dependency>
<!-- Processing is used for the debug GUI (though we could probably use just Java2D) --> <!-- Processing is used for the debug GUI (though we could probably use just Java2D) -->
<dependency> <dependency>
Expand Down Expand Up @@ -743,6 +734,13 @@
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>

<!-- SerializationUtils used to deep clone TripPatterns for dynamic flag stops -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.5</version>
</dependency>
</dependencies> </dependencies>


</project> </project>
Expand Up @@ -91,6 +91,7 @@ public Response plan(@Context UriInfo uriInfo, @Context Request grizzlyRequest)
response.setPlan(plan); response.setPlan(plan);


} catch (Exception e) { } catch (Exception e) {
e.printStackTrace();
PlannerError error = new PlannerError(e); PlannerError error = new PlannerError(e);
if(!PlannerError.isPlanningError(e.getClass())) if(!PlannerError.isPlanningError(e.getClass()))
LOG.warn("Error while planning path: ", e); LOG.warn("Error while planning path: ", e);
Expand Down
Expand Up @@ -18,7 +18,6 @@ the License, or (at your option) any later version.
import org.opentripplanner.graph_builder.model.GtfsBundle; import org.opentripplanner.graph_builder.model.GtfsBundle;
import org.opentripplanner.graph_builder.module.DirectTransferGenerator; import org.opentripplanner.graph_builder.module.DirectTransferGenerator;
import org.opentripplanner.graph_builder.module.EmbedConfig; import org.opentripplanner.graph_builder.module.EmbedConfig;
import org.opentripplanner.graph_builder.module.FlexDirectTransferGenerator;
import org.opentripplanner.graph_builder.module.GtfsModule; import org.opentripplanner.graph_builder.module.GtfsModule;
import org.opentripplanner.graph_builder.module.PruneFloatingIslands; import org.opentripplanner.graph_builder.module.PruneFloatingIslands;
import org.opentripplanner.graph_builder.module.StreetLinkerModule; import org.opentripplanner.graph_builder.module.StreetLinkerModule;
Expand Down Expand Up @@ -309,9 +308,6 @@ public static GraphBuilder forDirectory(CommandLineParameters params, File dir)
if ( ! builderParams.useTransfersTxt) { if ( ! builderParams.useTransfersTxt) {
// This module will use streets or straight line distance depending on whether OSM data is found in the graph. // This module will use streets or straight line distance depending on whether OSM data is found in the graph.
graphBuilder.addModule(new DirectTransferGenerator()); graphBuilder.addModule(new DirectTransferGenerator());
if (hasOSM) {
graphBuilder.addModule(new FlexDirectTransferGenerator());
}
} }
} }
graphBuilder.addModule(new EmbedConfig(builderConfig, routerConfig)); graphBuilder.addModule(new EmbedConfig(builderConfig, routerConfig));
Expand Down

0 comments on commit d3c3e9c

Please sign in to comment.