Skip to content
buma edited this page Dec 11, 2014 · 4 revisions

To add support for GTFS-Realtime, make sure your graph is built with TransitIndexBuilder and add the following to your application-context.xml in opentripplanner-api-webapp:

<bean id="periodicGraphUpdater" class="org.opentripplanner.api.servlet.PeriodicGraphUpdater">
    <property name="updaters">
        <list>
            <bean class="org.opentripplanner.updater.GtfsRealtimeUpdater">
                <property name="url" value="YOUR URL" />
                <property name="defaultAgencyId" value="YOUR AGENCY ID" />
            </bean>
       </list>
   </property>
</bean>

In master branch (current unstable) this is configured in Graph.properties file. More information about this type of configuration is available on page about Graph Updaters.

The documentation on this wiki is outdated and should not be used

unless you are intentionally working with legacy versions of OpenTripPlanner. Please consult the current documentation at readthedocs

Clone this wiki locally