(Initial page with setup notes - including XML snippets ...)
 
(Some notes on useful URLs to view/test)
Line 1: Line 1:
== Initial install of OTP ==
== 1) Initial install of OTP ==


I've found that the initial pre-built packages work OK for basic OTP routing on a local machine, and also display of some of the basic 'analyst' features like [[Travel time maps]]. I followed the [https://github.com/openplans/OpenTripPlanner/wiki/FiveMinutes 5 minute intro] instructions on the OTP Wiki initially.
I've found that the initial pre-built packages work OK for basic OTP routing on a local machine, and also display of some of the basic 'analyst' features like [[Travel time maps]]. I followed the [https://github.com/openplans/OpenTripPlanner/wiki/FiveMinutes 5 minute intro] instructions on the OTP Wiki initially.
Line 5: Line 5:
However, if you want to do more advanced 'batch analyst' functionality, this may mean installing the development version of OTP in an environment like Eclipse - see [[OSSTIP/Notes on getting OpenTripPlanner Analyst working]].
However, if you want to do more advanced 'batch analyst' functionality, this may mean installing the development version of OTP in an environment like Eclipse - see [[OSSTIP/Notes on getting OpenTripPlanner Analyst working]].


== Building the Melbourne routing network graph - relevant section of the Graph builder config file ==
== 2) Building the Melbourne routing network graph - relevant section of the Graph builder config file ==


In the case of Melbourne, we have 3 different [[GTFS]] files, for trains, trams, and buses. So in the GTFS specification section you need to list all of them, for example:
In the case of Melbourne, we have 3 different [[GTFS]] files, for trains, trams, and buses. So in the GTFS specification section you need to list all of them, for example:
Line 45: Line 45:
   </property>
   </property>
</pre>
</pre>
== 3) Open up the web applications to view/analyse results ==
Here's some relevant links I use while checking/working on the data, **with all the web applications installed and running locally - these won't work if you're running somewhere else**:
* http://localhost:8765/ - Schedule Viewer, to explore/check GTFS data
* http://localhost:8080/opentripplanner-webapp/index.html - OTP for routing in Melbourne
** To get the street network to display - Click the "+" symbol in the top-right of the map, and choose "Open Street Map" as the base layer, instead of "Mapbox Streets" (The Mapbox free service is no longer running).
* http://localhost:8080/opentripplanner-analyst-client/index.html - OTP Analyst client. To get it displaying properly, in the top-right of the display click the layers box and :
** Click the "OSM" button;
** Enable the 'Analyst Tiles' checkbox.

Revision as of 02:48, 15 August 2013

1) Initial install of OTP

I've found that the initial pre-built packages work OK for basic OTP routing on a local machine, and also display of some of the basic 'analyst' features like Travel time maps. I followed the 5 minute intro instructions on the OTP Wiki initially.

However, if you want to do more advanced 'batch analyst' functionality, this may mean installing the development version of OTP in an environment like Eclipse - see OSSTIP/Notes on getting OpenTripPlanner Analyst working.

2) Building the Melbourne routing network graph - relevant section of the Graph builder config file

In the case of Melbourne, we have 3 different GTFS files, for trains, trams, and buses. So in the GTFS specification section you need to list all of them, for example:

      <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="path" value="/Users/pds_phd/Dropbox/PhD-TechnicalProjectWork/OSSTIP_Common/GIS-Network-Data-Melb/GTFS-ExtractedData-201307/melb-train-gtfs.zip" />
                            <property name="defaultAgencyId" value="30" />
                            <property name="defaultBikesAllowed" value="true" />
                        </bean>
                        <bean class="org.opentripplanner.graph_builder.model.GtfsBundle">
                            <property name="path" value="/Users/pds_phd/Dropbox/PhD-TechnicalProjectWork/OSSTIP_Common/GIS-Network-Data-Melb/GTFS-ExtractedData-201307/melb-tram-gtfs.zip" />
                            <property name="defaultBikesAllowed" value="false" />
                            <property name="defaultAgencyId" value="32" />
                        </bean>
                        <bean class="org.opentripplanner.graph_builder.model.GtfsBundle">
                            <property name="path" value="/Users/pds_phd/Dropbox/PhD-TechnicalProjectWork/OSSTIP_Common/GIS-Network-Data-Melb/GTFS-ExtractedData-201307/melb-bus-gtfs.zip" />
                            <property name="defaultBikesAllowed" value="false" />
                            <property name="defaultAgencyId" value="34" />
                        </bean>
                    </list>
                </property>
            </bean>

and as suggested above, if you download a local copy of a Melbourne OSM file, then my section looked like this:

   <property name="provider">
            <bean class="org.opentripplanner.openstreetmap.impl.AnyFileBasedOpenStreetMapProviderImpl">
                <property name="path" value="/Users/Shared/GIS-Projects-General/OSM_Datasets/OSM-Melb-Large-FromMetroExtracts.osm" />
            </bean>
   </property>

3) Open up the web applications to view/analyse results

Here's some relevant links I use while checking/working on the data, **with all the web applications installed and running locally - these won't work if you're running somewhere else**:

Cookies help us deliver our services. By using our services, you agree to our use of cookies.