Ticket #396: navit-vehicles.xml

File navit-vehicles.xml, 15.0 KB (added by stuvel.eu, 12 years ago)

Vehicle configuration

Line 
1<?xml version="1.0"?>
2<!DOCTYPE config SYSTEM "navit.dtd">
3<!-- For configuration options used in this file, please read
4     http://wiki.navit-project.org/index.php/Configuring_NavIt -->
5<config xmlns:xi="http://www.w3.org/2001/XInclude">
6    <navit>
7        <vehicle name="Car - no follow" profilename="car"
8            enabled="yes" active="1" source="gpsd://localhost"
9            gpsd_query="w+xj" update="yes" color="#0000ff">
10
11            <!-- include the regular car definition -->
12            <xi:include
13                xpointer="xpointer(/config/navit/vehicle[@name='Car']/*)" />
14        </vehicle>
15
16        <vehicle name="Car" profilename="car" enabled="yes" active="1"
17            source="gpsd://localhost" gpsd_query="w+xj"
18            update="yes"
19            color="#0000ff">
20            <!-- Navit can write a tracklog in several formats (gpx, nmea or textfile): -->
21            <log type="gpx" data="/home/root/gpx/car-track_%Y%m%d-%i.gpx" flush_size="1000" flush_time="30"/>
22            <log type="textfile" data="/home/root/gpx/car-track.txt" flush_size="0" overwrite="1" />
23            <cursor w="26" h="26">
24                <itemgra>
25                    <circle color="#0000ff" radius="24" width="2">
26                        <coord x="0" y="0"/>
27                    </circle>
28                </itemgra>
29                <itemgra speed_range="-2">
30                    <polyline color="#0000ff" width="2">
31                        <coord x="0" y="0"/>
32                        <coord x="0" y="0"/>
33                    </polyline>
34                </itemgra>
35                <itemgra speed_range="3-">
36                    <polyline color="#0000ff" width="2">
37                        <coord x="-7" y="-10"/>
38                        <coord x="0" y="12"/>
39                        <coord x="7" y="-10"/>
40                    </polyline>
41                </itemgra>
42            </cursor>
43        </vehicle>
44
45        <vehicle name="Bike" profilename="bike" enabled="yes" active="0" source="gpsd://localhost" gpsd_query="w+xj" color="#0000ff"
46            update="yes">
47            <!-- Navit can write a tracklog in several formats (gpx, nmea or textfile): -->
48            <log type="gpx" data="/home/root/gpx/bike-track_%Y%m%d-%i.gpx" flush_size="1000" flush_time="30"/>
49            <log type="textfile" data="/home/root/gpx/bike-track.txt" flush_size="0" overwrite="1" />
50            <cursor w="26" h="26">
51                <itemgra>
52                    <circle color="#0000ff" radius="24" width="2">
53                        <coord x="0" y="0"/>
54                    </circle>
55                </itemgra>
56                <itemgra speed_range="-2">
57                    <polyline color="#0000ff" width="2">
58                        <coord x="0" y="0"/>
59                        <coord x="0" y="0"/>
60                    </polyline>
61                </itemgra>
62                <itemgra speed_range="3-">
63                    <polyline color="#0000ff" width="2">
64                        <coord x="-7" y="-10"/>
65                        <coord x="0" y="12"/>
66                        <coord x="7" y="-10"/>
67                    </polyline>
68                </itemgra>
69            </cursor>
70        </vehicle>
71
72        <vehicle name="Pedestrian" profilename="pedestrian"
73            enabled="yes" active="0" source="gpsd://localhost"
74            gpsd_query="w+xj" color="#0000ff"
75            update="yes">
76            <!-- Navit can write a tracklog in several formats (gpx, nmea or textfile): -->
77            <!-- <log type="gpx" data="track_%Y%m%d-%i.gpx" flush_size="1000" flush_time="30"/> -->
78            <log type="gpx" data="/home/root/gpx/walk-track_%Y%m%d-%i.gpx" flush_size="1000" flush_time="30"/>
79            <log type="textfile" data="/home/root/gpx/walk-track.txt" flush_size="0" overwrite="1" />
80            <cursor w="26" h="26">
81                <itemgra>
82                    <circle color="#0000ff" radius="24" width="2">
83                        <coord x="0" y="0"/>
84                    </circle>
85                </itemgra>
86                <itemgra speed_range="-2">
87                    <polyline color="#0000ff" width="2">
88                        <coord x="0" y="0"/>
89                        <coord x="0" y="0"/>
90                    </polyline>
91                </itemgra>
92                <itemgra speed_range="3-">
93                    <polyline color="#0000ff" width="2">
94                        <coord x="-7" y="-10"/>
95                        <coord x="0" y="12"/>
96                        <coord x="7" y="-10"/>
97                    </polyline>
98                </itemgra>
99            </cursor>
100        </vehicle>
101
102        <!-- For the cumulative displacement filter to be enabled, set cdf_histsize="x" here, with x being an integer somewhere around 4 -->
103        <tracking cdf_histsize="0"/>
104
105  <vehicleprofile name="car" flags="0x4000000" flags_forward_mask="0x4000002" flags_reverse_mask="0x4000001" maxspeed_handling="0" route_mode="0">
106      <roadprofile item_types="street_0,street_1_city,living_street,street_service,track_gravelled,track_unpaved" speed="10" route_weight="10">
107              <announcement level="0" distance_metric="25"/>
108              <announcement level="1" distance_metric="100"/>
109              <announcement level="2" distance_metric="200"/>
110      </roadprofile>
111            <roadprofile item_types="street_2_city,track_paved" speed="30" route_weight="30">
112              <announcement level="0" distance_metric="50"/>
113              <announcement level="1" distance_metric="200"/>
114              <announcement level="2" distance_metric="500"/>
115      </roadprofile>
116            <roadprofile item_types="street_3_city" speed="40" route_weight="40">
117              <announcement level="0" distance_metric="50"/>
118              <announcement level="1" distance_metric="200"/>
119              <announcement level="2" distance_metric="500"/>
120      </roadprofile>
121            <roadprofile item_types="street_4_city" speed="50" route_weight="50">
122              <announcement level="0" distance_metric="50"/>
123              <announcement level="1" distance_metric="200"/>
124              <announcement level="2" distance_metric="500"/>
125      </roadprofile>
126            <roadprofile item_types="highway_city" speed="80" route_weight="80">
127              <announcement level="0" distance_metric="100"/>
128              <announcement level="1" distance_metric="400"/>
129              <announcement level="2" distance_metric="1000"/>
130      </roadprofile>
131            <roadprofile item_types="street_1_land" speed="60" route_weight="60">
132              <announcement level="0" distance_metric="100"/>
133              <announcement level="1" distance_metric="400"/>
134              <announcement level="2" distance_metric="1000"/>
135      </roadprofile>
136            <roadprofile item_types="street_2_land" speed="65" route_weight="65">
137              <announcement level="0" distance_metric="100"/>
138              <announcement level="1" distance_metric="400"/>
139              <announcement level="2" distance_metric="1000"/>
140      </roadprofile>
141            <roadprofile item_types="street_3_land" speed="70" route_weight="70">
142              <announcement level="0" distance_metric="100"/>
143              <announcement level="1" distance_metric="400"/>
144              <announcement level="2" distance_metric="1000"/>
145      </roadprofile>
146            <roadprofile item_types="street_4_land" speed="80" route_weight="80">
147              <announcement level="0" distance_metric="100"/>
148              <announcement level="1" distance_metric="400"/>
149              <announcement level="2" distance_metric="1000"/>
150      </roadprofile>
151            <roadprofile item_types="street_n_lanes" speed="120" route_weight="120">
152              <announcement level="0" distance_metric="300"/>
153              <announcement level="1" distance_metric="1000"/>
154              <announcement level="2" distance_metric="2000"/>
155      </roadprofile>
156            <roadprofile item_types="highway_land" speed="120" route_weight="120">
157              <announcement level="0" distance_metric="300"/>
158              <announcement level="1" distance_metric="1000"/>
159              <announcement level="2" distance_metric="2000"/>
160      </roadprofile>
161            <roadprofile item_types="ramp" speed="40" route_weight="40">
162              <announcement level="0" distance_metric="50"/>
163              <announcement level="1" distance_metric="200"/>
164              <announcement level="2" distance_metric="500"/>
165      </roadprofile>
166            <roadprofile item_types="roundabout" speed="10" route_weight="10"/>
167            <roadprofile item_types="ferry" speed="40" route_weight="40"/>
168  </vehicleprofile>
169
170  <vehicleprofile name="bike" flags="0x40000000" flags_forward_mask="0x40000000" flags_reverse_mask="0x40000000" maxspeed_handling="1" route_mode="0">
171      <roadprofile item_types="steps" speed="2" route_weight="5">
172              <announcement level="0" distance_metric="25"/>
173              <announcement level="1" distance_metric="100"/>
174              <announcement level="2" distance_metric="200"/>
175      </roadprofile>
176      <roadprofile item_types="street_pedestrian,footway" speed="5" route_weight="10">
177              <announcement level="0" distance_metric="25"/>
178              <announcement level="1" distance_metric="100"/>
179              <announcement level="2" distance_metric="200"/>
180      </roadprofile>
181      <roadprofile item_types="path,track_ground" speed="12" route_weight="12">
182              <announcement level="0" distance_metric="25"/>
183              <announcement level="1" distance_metric="100"/>
184              <announcement level="2" distance_metric="200"/>
185      </roadprofile>
186      <roadprofile item_types="track_gravelled" speed="17" route_weight="15">
187              <announcement level="0" distance_metric="25"/>
188              <announcement level="1" distance_metric="100"/>
189              <announcement level="2" distance_metric="200"/>
190      </roadprofile>
191      <!-- cycleways, paved tracks, serviceways etc. are the favourite ways -->
192      <roadprofile item_types="track_paved,cycleway,street_service,street_parking_lane" speed="22" route_weight="20">
193              <announcement level="0" distance_metric="25"/>
194              <announcement level="1" distance_metric="100"/>
195              <announcement level="2" distance_metric="200"/>
196      </roadprofile>
197      <!-- residential, unclassified, living street etc. -->
198      <roadprofile item_types="street_0,street_1_city,living_street" speed="20" route_weight="15">
199              <announcement level="0" distance_metric="25"/>
200              <announcement level="1" distance_metric="100"/>
201              <announcement level="2" distance_metric="200"/>
202      </roadprofile>
203      <!-- tertiary and minor roads are acceptable, but should be avoided in favour of tracks and cycleways -->
204      <roadprofile item_types="street_2_city,street_1_land,street_2_land" speed="22" route_weight="12">
205              <announcement level="0" distance_metric="25"/>
206              <announcement level="1" distance_metric="100"/>
207              <announcement level="2" distance_metric="200"/>
208      </roadprofile>
209      <!-- secondary etc. are acceptable when necessary -->
210      <roadprofile item_types="street_3_city" speed="22" route_weight="10">
211              <announcement level="0" distance_metric="25"/>
212              <announcement level="1" distance_metric="100"/>
213              <announcement level="2" distance_metric="200"/>
214      </roadprofile>
215      <!-- primary, trunk etc. should be avoided -->
216      <roadprofile item_types="street_4_city,ramp" speed="22" route_weight="7">
217              <announcement level="0" distance_metric="25"/>
218              <announcement level="1" distance_metric="100"/>
219              <announcement level="2" distance_metric="200"/>
220      </roadprofile>
221      <!-- Those types do not appear in osm2navit.c and therefore are not used ATM -->
222      <roadprofile item_types="street_3_land,street_4_land" speed="20" route_weight="7">
223              <announcement level="0" distance_metric="100"/>
224              <announcement level="1" distance_metric="400"/>
225              <announcement level="2" distance_metric="1000"/>
226      </roadprofile>
227            <roadprofile item_types="roundabout" speed="20" route_weight="10"/>
228            <roadprofile item_types="ferry" speed="40" route_weight="40"/>
229  </vehicleprofile>
230
231  <vehicleprofile name="pedestrian" flags="0x20000000" flags_forward_mask="0x20000000" flags_reverse_mask="0x20000000" maxspeed_handling="1" route_mode="0">
232      <roadprofile item_types="footway,bridleway,path" speed="5" route_weight="5">
233              <announcement level="0" distance_metric="25"/>
234              <announcement level="1" distance_metric="100"/>
235              <announcement level="2" distance_metric="200"/>
236      </roadprofile>
237      <roadprofile item_types="living_street,street_pedestrian" speed="5" route_weight="5">
238              <announcement level="0" distance_metric="25"/>
239              <announcement level="1" distance_metric="100"/>
240              <announcement level="2" distance_metric="200"/>
241      </roadprofile>
242      <roadprofile item_types="track_gravelled" speed="5" route_weight="5">
243              <announcement level="0" distance_metric="25"/>
244              <announcement level="1" distance_metric="100"/>
245              <announcement level="2" distance_metric="200"/>
246      </roadprofile>
247      <roadprofile item_types="track_paved" speed="5" route_weight="5">
248              <announcement level="0" distance_metric="25"/>
249              <announcement level="1" distance_metric="100"/>
250              <announcement level="2" distance_metric="200"/>
251      </roadprofile>
252      <roadprofile item_types="cycleway" speed="5" route_weight="5">
253              <announcement level="0" distance_metric="25"/>
254              <announcement level="1" distance_metric="100"/>
255              <announcement level="2" distance_metric="200"/>
256      </roadprofile>
257      <roadprofile item_types="street_0,street_1_city,street_2_city" speed="5" route_weight="5">
258              <announcement level="0" distance_metric="25"/>
259              <announcement level="1" distance_metric="100"/>
260              <announcement level="2" distance_metric="200"/>
261      </roadprofile>
262      <roadprofile item_types="street_3_city,street_4_city,street_service" speed="5" route_weight="5">
263              <announcement level="0" distance_metric="25"/>
264              <announcement level="1" distance_metric="100"/>
265              <announcement level="2" distance_metric="200"/>
266      </roadprofile>
267            <roadprofile item_types="street_1_land,street_2_land" speed="5" route_weight="5">
268              <announcement level="0" distance_metric="100"/>
269              <announcement level="1" distance_metric="400"/>
270              <announcement level="2" distance_metric="1000"/>
271      </roadprofile>
272            <roadprofile item_types="street_3_land,street_4_land" speed="5" route_weight="5">
273              <announcement level="0" distance_metric="100"/>
274              <announcement level="1" distance_metric="400"/>
275              <announcement level="2" distance_metric="1000"/>
276      </roadprofile>
277            <roadprofile item_types="roundabout" speed="5" route_weight="5"/>
278            <roadprofile item_types="ferry" speed="40" route_weight="40"/>
279  </vehicleprofile>
280    </navit>
281</config>