Hi All,
If the GTFS is not loaded in my Graph.obj file. I have to rebuild.
Here's my graph-builder.xml file
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="
http://www.springframework.org/schema/beans" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="
http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
<bean id="gtfsBuilder" class="org.opentripplanner.graph_builder.impl.GtfsGraphBuilderImpl">
<property name="gtfsBundles">
<bean id="gtfsBundles" class="org.opentripplanner.graph_builder.model.GtfsBundles">
<property name="bundles">
<list>
<bean class="org.opentripplanner.graph_builder.model.GtfsBundle">
<property name="url" value="" />
<property name="defaultAgencyId" value="TriMet" />
<!-- By default, bikes may only be taken along on transit trips if the GTFS data allows them to be.
If the GTFS data doesn't contain appropriate data, but the actual transit trips do allows bikes
to be taken along, a defaultBikesAllowed property may be specified to allow bikes.
-->
<property name="defaultBikesAllowed" value="true" />
</bean>
</list>
</property>
</bean>
</property>
<!-- GTFS-rt ALERTS -->
<property name="gtfsGraphBuilders">
<list>
<bean class="org.opentripplanner.graph_builder.impl.transit_index.TransitIndexBuilder" />
</list>
</property>
</bean>
<bean id="osmBuilder" class="org.opentripplanner.graph_builder.impl.osm.OpenStreetMapGraphBuilderImpl">
<!-- Use an OSM provider that reads a file -->
<property name="provider">
<bean class="org.opentripplanner.openstreetmap.impl.AnyFileBasedOpenStreetMapProviderImpl">
<property name="path" value="/otp/cache/osm/latest.osm" />
</bean>
</property>
<!-- Street Traversal Permisssion and Biking weighting is configurable, but we'll use the defaults for OSM...
Street Traversal Permisssion: what modes are allowed on certain road/surface types (e.g., no cars on bike lanes, etc...)
Bike weighting: the planner is using a 'shortest path' algorithm to choose one route from another. To prefer certain paths
for biking (e.g., bike lanes), we can make the theoretical lenght of a street type shorter or longer, thus
more or less attractive to the routing engine. Weights of > 1.0 make a road type shorter (more attactive)
@see
http://wiki.openstreetmap.org/wiki/OSM_tags_for_routing/Access-Restrictions @see
https://github.com/openplans/OpenTripPlanner/blob/master/opentripplanner-graph-builder/src/main/java/org/opentripplanner/graph_builder/impl/osm/DefaultWayPropertySetSource.java -->
<property name="defaultWayPropertySetSource">
<bean class="org.opentripplanner.graph_builder.impl.osm.DefaultWayPropertySetSource" />
</property>
<!-- custom unamed street namer -->
<property name="customNamer">
<bean class="org.opentripplanner.graph_builder.impl.osm.PortlandCustomNamer" />
</property>
</bean>
<bean id="nedBuilder" class="org.opentripplanner.graph_builder.impl.ned.NEDGraphBuilderImpl">
<property name="gridCoverageFactory">
<bean class="org.opentripplanner.graph_builder.impl.ned.NEDGridCoverageFactoryImpl">
<property name="cacheDirectory" value="/otp/cache/ned" />
</bean>
</property>
</bean>
<bean id="transitStreetLink" class="org.opentripplanner.graph_builder.impl.TransitToStreetNetworkGraphBuilderImpl" />
<bean id="checkGeometry" class="org.opentripplanner.graph_builder.impl.CheckGeometryGraphBuilderImpl" />
<bean id="mapBuilder" class="org.opentripplanner.graph_builder.impl.map.MapBuilder"/>
<bean id="graphBuilderTask" class="org.opentripplanner.graph_builder.GraphBuilderTask">
<!-- typical config -->
<property name="path" value="/OpenTripPlanner" />
<property name="graphBuilders">
<list>
<ref bean="gtfsBuilder" />
<ref bean="osmBuilder" />
<ref bean="mapBuilder" />
<ref bean="checkGeometry" />
<!-- NED builder commented out - ->
<ref bean="nedBuilder" />
<!- - -->
<ref bean="transitStreetLink" />
</list>
</property>
</bean>
</beans>
I emptied the Gtfs bundle. if you need the gtfs bundle zip I can email the link to Tuukka.
Can you help me to figure out how to load the gtfs bundle into my graph object file?
Many Thanks!!!