-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtransitclockConfig.xml
More file actions
61 lines (50 loc) · 2.45 KB
/
Copy pathtransitclockConfig.xml
File metadata and controls
61 lines (50 loc) · 2.45 KB
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
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="UTF-8"?>
<!--
Production sample for TheTransitClock Core.
Pass this to Core / GtfsFileProcessor / etc. via:
-Dtransitclock.configFiles=/etc/transitclock/transitclockConfig.xml
Root tag MUST be <transitclock> — the XML node names become the prefix
of the resulting system properties (org.transitclock.config.ConfigFileReader),
and every typed ConfigValue in the codebase is registered under
transitclock.* . A root tag of <transitime> is silently ignored.
-->
<transitclock>
<core>
<agencyId>02</agencyId>
</core>
<modules>
<!-- Semicolon-separated list of Module subclasses to start as threads.
Separator MUST be ';' — comma is not accepted (CoreConfig).
For a GTFS-realtime VehiclePositions feed, this is the right one. -->
<optionalModulesList>org.transitclock.avl.GtfsRealtimeModule</optionalModulesList>
</modules>
<avl>
<!-- VehiclePositions feed URL. Comma-separated list also accepted. -->
<gtfsRealtimeFeedURI>https://example.org/gtfs-realtime/vehiclePositions</gtfsRealtimeFeedURI>
<!-- Optional HTTP basic auth on the feed. -->
<!-- <authenticationUser>feed_user</authenticationUser> -->
<!-- <authenticationPassword>feed_pass</authenticationPassword> -->
<!-- Uncomment to override the defaults (5 s poll, 10000 ms timeout). -->
<!-- <feedPollingRateSecs>5</feedPollingRateSecs> -->
<!-- <feedTimeoutInMSecs>10000</feedTimeoutInMSecs> -->
<!-- Optional: drop AVL outside this bbox (uncomment + set to use). -->
<!--
<minLatitude>27.0</minLatitude>
<maxLatitude>28.0</maxLatitude>
<minLongitude>-83.0</minLongitude>
<maxLongitude>-82.0</maxLongitude>
-->
</avl>
<hibernate>
<!-- Absolute path is most reliable; classpath lookup is also tried. -->
<configFile>/etc/transitclock/postgres_hibernate.cfg.xml</configFile>
</hibernate>
<!-- Auto-block assignment: when enabled, vehicles seen on the AVL feed
that aren't already assigned to a block will be matched against
currently-active blocks based on schedule and position, instead of
being dropped. Default true; set to false if your AVL upstream
already assigns blocks and you'd rather trust it. -->
<autoBlockAssigner>
<autoAssignerEnabled>true</autoAssignerEnabled>
</autoBlockAssigner>
</transitclock>