Last active
August 29, 2015 13:59
-
-
Save buma/10593175 to your computer and use it in GitHub Desktop.
XML config file for OpenTripPlanner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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="path" value="/home/mabu/programiranje/forotp/data/avtobus.zip" /> | |
<property name="defaultBikesAllowed" value="false" /> | |
</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"> | |
<!--<property name="provider">--> | |
<!--<bean class="org.opentripplanner.openstreetmap.impl.RegionBasedOpenStreetMapProviderImpl">--> | |
<!--<property name="regionsSource">--> | |
<!--<bean class="org.opentripplanner.graph_builder.impl.TransitStopsRegionsSourceImpl" />--> | |
<!--</property>--> | |
<!--<property name="cacheDirectory" value="/home/otp/osm" />--> | |
<!--</bean>--> | |
<!--</property>--> | |
<property name="staticBikeRental" value="true" /> | |
<property name="provider"> | |
<!-- Use an OSM provider that reads a file--> | |
<bean class="org.opentripplanner.openstreetmap.impl.AnyFileBasedOpenStreetMapProviderImpl"> | |
<!--<property name="path" value="/home/mabu/programiranje/forotp/data/slovenia-latest.osm.pbf" />--> | |
<property name="path" value="/home/mabu/programiranje/forotp/data/maribor-latest-bikes.osm" /> | |
</bean> | |
</property> | |
<property name="defaultWayPropertySetSource"> | |
<bean class="org.opentripplanner.graph_builder.impl.osm.DefaultWayPropertySetSource" /> | |
</property> | |
<!--<property name="wayPropertySet"> | |
<bean class="org.opentripplanner.graph_builder.impl.osm.WayPropertySet"> | |
<property name="slopeOverrides"> | |
<list> | |
<bean class="org.opentripplanner.graph_builder.impl.osm.SlopeOverridePicker"> | |
<property name="specifier" value="bridge=yes" /> | |
<property name="override" value="true" /> | |
</bean> | |
<bean class="org.opentripplanner.graph_builder.impl.osm.SlopeOverridePicker"> | |
<property name="specifier" value="tunnel=yes" /> | |
<property name="override" value="true" /> | |
</bean> | |
</list> | |
</property> | |
</bean> | |
</property> --> | |
</bean> | |
<bean class="org.opentripplanner.graph_builder.impl.FareServiceGraphBuilderImpl" id ="fareBuilder"> | |
<property name="service"> | |
<bean class="org.opentripplanner.routing.bike_rental.TimeBasedBikeRentalFareService"> | |
<property name="currency" value="EUR" /> | |
<property name="pricing"> | |
<list value-type="java.lang.String"> | |
<value>1:59:00,020</value> | |
<value>3:59:00,050</value> | |
<value>8:59:00,080</value> | |
<value>12:00:00,120</value> | |
</list> | |
</property> | |
</bean> | |
</property> | |
</bean> | |
<bean id="floatingIslands" class="org.opentripplanner.graph_builder.impl.PruneFloatingIslands"> | |
<property name="islandWithoutStopsMaxSize" value="1000 "/> | |
<property name="islandLogFile" value="/home/mabu/programiranje/forotp/data/island.csv"/> | |
<property name="islandWithStopsMaxSize" value="20"/> | |
<property name="transitToStreetNetwork" ref ="transitStreetLink"/> | |
</bean> | |
<bean id="nedBuilder" class="org.opentripplanner.graph_builder.impl.ned.NEDGraphBuilderImpl"> | |
<property name="gridCoverageFactory"> | |
<bean class="org.opentripplanner.graph_builder.impl.ned.GeotiffGridCoverageFactoryImpl"> | |
<property name="path" value="/home/mabu/programiranje/forotp/data/EUD_CP-DEMS_4500025000-AA.tif" /> | |
</bean> | |
</property> | |
</bean> | |
<bean id="transitStreetLink" class="org.opentripplanner.graph_builder.impl.TransitToStreetNetworkGraphBuilderImpl" /> | |
<!--<bean id="optimizeTransit" class="org.opentripplanner.graph_builder.impl.OptimizeTransitGraphBuilderImpl" />--> | |
<!--Check the geometry of every edge in the graph for any bogus geometry --> | |
<!--that is, geometry with coordinates of NaN.--> | |
<!--This is mainly good for debugging, but probably worth keeping on for production--> | |
<!--because the cost is small compared to the pain of debugging.--> | |
<bean id="checkGeometry" class="org.opentripplanner.graph_builder.impl.CheckGeometryGraphBuilderImpl" /> | |
<!-- prefers street on which bus drives when connecting bus stops to strets --> | |
<bean id="mapBuilder" class="org.opentripplanner.graph_builder.impl.map.MapBuilder"/> | |
<bean id="graphBuilderTask" class="org.opentripplanner.graph_builder.GraphBuilderTask"> | |
<property name="path" value="/home/mabu/programiranje/forotp/data" /> | |
<property name="graphBuilders"> | |
<list> | |
<!-- GTFS comes before OSM, because we use the loaded set of stops to determine our OSM coverage --> | |
<ref bean="gtfsBuilder" /> | |
<ref bean="osmBuilder" /> | |
<ref bean="mapBuilder" /> | |
<ref bean="checkGeometry" /> | |
<ref bean="nedBuilder" /> | |
<ref bean="fareBuilder" /> | |
<!-- the transmit link should became before the floating islands in order to find islands with stops--> | |
<ref bean="transitStreetLink" /> | |
<ref bean="floatingIslands" /> | |
</list> | |
</property> | |
</bean> | |
</beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment