Skip to content

ConfiguringTheWebapp

andrewbyrd edited this page Sep 29, 2011 · 6 revisions

Configuring the opentripplanner-api-webapp

The opentripplanner-api-webapp needs one additional configuration file before you can run it. Add the following in your source tree:

opentripplanner-api-webapp/src/main/resources/data-sources.xml

Edit opentripplanner-api-webapp/src/main/resources/data-sources.xml to point to where your graph will live once you build it with the GraphBuilder.

The contents of the file should look like:

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">



<bean id="graphBundle" class="org.opentripplanner.model.GraphBundle">

    <property name="path" value="/path/to/your/graph-bundle/goes/here" />

</bean>

The main thing to do here is change the path setting to match the directory of your serialized graph bundle that you produced with GraphBuilder.

Clone this wiki locally