Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Latest commit

 

History

History
83 lines (59 loc) · 2.91 KB

README-TRIPPLANNER.rst

File metadata and controls

83 lines (59 loc) · 2.91 KB

OpenTripPlanner

Tulsa Web Devs runs an instance of OpenTripPlanner using this Tulsa Transit GTFS feed. The following instructions explain how to update the OpenTripPlanner graph object file at http://tripplanner.tulsawebdevs.org

Upload new feed .zip

The OpenTripPlanner server can download the feed.zip from an external website, so you just need to make it accessible.

One way is to get it on http://gtfs.tulsawebdevs.org. You'll need a login in order to upload files. You can upload an MTTA signup, and a feed will be generated in about 90 minutes. Or, if you generate a feed locally, you can directly upload it. If you set the feed as the current feed, it will be available at http://gtfs.tulsawebdevs.org/ttg/files/by_version/current/feed.zip . This is the preferred way to load the GTFS file, since we can re-run the importer without changing the config file.

You can also store it in dropbox, in groovecoder's mtta_gtfs public dropbox folder so the OpenTripPlanner server can download them to build its graph object. When you generate a new feed .zip file, upload it to the mtta_gtfs public dropbox folder.

SSH to the server

The server is a Rackspace 2GB instance running Ubuntu 12.04 with an 'otp' user account running OpenTripPlanner. To connect to the box:

  1. grab the otp_rsa private key from our tulsa_transit folder on Dropbox (You'll need to be invited to the folder by groovecoder)

  2. Use the following ssh config:

    Host tripplanner
        HostName 50.57.172.192
        User otp
        IdentityFile ~/.ssh/otp_rsa
    
  3. ssh tripplanner

Update graph-builder.xml

Once you're on the box, you need to update OpenTripPlanner's builder to use the new feed .zip file.

  1. Edit /otp/graph-builder.xml

  2. Change the GtfsBundle url value. For gtfs.tulsawebdevs.org:

    <bean class="org.opentripplanner.graph_builder.model.GtfsBundle">
        <property name="url" value="http://gtfs.tulsawebdevs.org/ttg/files/by_version/current/feed.zip" />
    

or, for groovecoder's dropbox:

<bean class="org.opentripplanner.graph_builder.model.GtfsBundle">
    <property name="url" value="https://dl.dropbox.com/u/219693365/mtta_gtfs/{new-file}.zip" />

Run build-graph.sh

Now run the graph builder - it will fetch the new feed .zip file and generate a new graph object. (May take a few minutes):

cd /otp/ && .bin/build-graph.sh

Restart OpenTripPlanner

OpenTripPlanner should be running in a screen session of the otp user. You need to restart OpenTripPlanner to load the new graph object:

screen -x
^C
cd /otp && sudo .bin/start-server.sh