forked from brandonwillard/open-tracking-tools
-
Notifications
You must be signed in to change notification settings - Fork 3
/
clearstreets-graph-builder.xml
50 lines (45 loc) · 2.54 KB
/
clearstreets-graph-builder.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?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="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.openstreetmap.impl.FixedRegionSourceImpl">
<property name="latFrom" value="41.644286" />
<property name="lonFrom" value="-87.94010087" />
<property name="latTo" value="42.02313497" />
<property name="lonTo" value="-87.52366115999999" />
</bean>
</property>
<property name="cacheDirectory" value="/tmp/osm-cache" />
</bean>
</property>
<property name="defaultWayPropertySetSource">
<bean class="org.opentripplanner.graph_builder.impl.osm.DefaultWayPropertySetSource" />
</property>
<property name="edgeFactory">
<bean class="org.opentrackingtools.graph.otp.PlainStreetEdgeFactory" />
</property>
</bean>
<bean id="checkGeometry" class="org.opentripplanner.graph_builder.impl.CheckGeometryGraphBuilderImpl" />
<!-- The following beans are necessary for open-tracking-tools -->
<bean id="reconstruct" class="org.opentrackingtools.graph.otp.ReconstructOriginalGraph" />
<bean id="reproject" class="org.opentrackingtools.graph.otp.ReprojectCoords" />
<bean id="graphBuilderTask" class="org.opentripplanner.graph_builder.GraphBuilderTask">
<property name="path" value="/tmp" />
<property name="graphBuilders">
<list>
<!-- GTFS comes before OSM, because we use the loaded set of stops to determine our OSM coverage -->
<ref bean="osmBuilder" />
<ref bean="checkGeometry" />
<!-- Again, following beans are necessary for open-tracking-tools -->
<ref bean="reconstruct" />
<ref bean="reproject" />
</list>
</property>
</bean>
</beans>