-
Notifications
You must be signed in to change notification settings - Fork 5
/
VTT.xml
306 lines (291 loc) · 13.6 KB
/
VTT.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
<?xml version="1.0" encoding="utf-8" ?>
<osmand_routing_config defaultProfile="VTT" name="VTT">
<attribute name="heuristicCoefficient" value="3.4" />
<attribute name="zoomToLoadTiles" value="16" />
<attribute name="planRoadDirection" value="1" />
<attribute name="recalculateDistanceHelp" value="100000" />
<!-- routing for GPX ? -->
<!-- MAIN parameter to approximate (35m good for custom recorded tracks)-->
<attribute name="minPointApproximation" value = "50"/>
<!-- don't search subsegments shorter than specified distance (also used to step back for car turns) -->
<attribute name="minStepApproximation" value = "100"/>
<!-- This parameter could speed up or slow down evaluation (better to make bigger for long routes and smaller for short)-->
<attribute name="maxStepApproximation" value= "3000"/>
<!-- Parameter to smoother the track itself (could be 0 if it's not recorded track) -->
<attribute name="smoothenPointsNoRoute" value = "5"/>
<!-- NEW ROUTING API -->
<routingProfile name="VTT" baseProfile="VTT" restrictionsAware="true" minSpeed="1" defaultSpeed="5" maxSpeed="60" followSpeedLimitations="false" onewayAware="true">
<parameter id="avoid_interdit" name="pas d'interdiction" description="passe sur l'interdit" type="boolean"/>
<parameter id="avoid_chemin" name="velo route" description="pas de chemin" type="boolean"/>
<parameter id="relief_smoothness_factor_more_plains" group="relief_smoothness_factor" name="More plains" description="" type="boolean"/>
<parameter id="relief_smoothness_factor_plains" group="relief_smoothness_factor" name="Plains" description="" type="boolean" default="true"/>
<parameter id="relief_smoothness_factor_hills" group="relief_smoothness_factor" name="Hills" description="" type="boolean"/>
<parameter id="height_obstacles" name="Use elevation data" description="Use terrain elevation data provided by SRTM, ASTER and EU-DEM" type="boolean" default="false"/>
<way attribute="access">
<select value="-1" t="osmand_change" v="delete"/>
<select value="-1" t="construction" v="yes"/>
<select value="-1" t="mtb:scale" v="4"/>
<select value="-1" t="mtb:scale" v="5"/>
<select value="-1" t="mtb:scale" v="6"/>
<select value="-1" t="sac_scale" v="demanding_mountain_hiking"/>
<select value="-1" t="sac_scale" v="alpine_hiking"/>
<select value="-1" t="sac_scale" v="demanding_alpine_hiking"/>
<select value="-1" t="sac_scale" v="difficult_alpine_hiking"/>
<if param="avoid_interdit">
<select value="1" t="access" v="private"/>
<select value="1" t="access" v="no"/>
<select value="1" t="footway" v="sidewalk"/>
<select value="1" t="bicycle" v="no"/>
<select value="1" t="bicycle" v="private"/>
<select value="1" t="bicycle" v="destination"/>
</if>
<select value="-1" t="bicycle" v="no"/>
<select value="-1" t="bicycle" v="private"/>
<select value="-1" t="bicycle" v="destination"/>
<select value="1" t="bicycle" v="permissive"/>
<select value="1" t="footway" v="sidewalk"/>
<select value="-1" t="access" v="no"/>
<select value="-1" t="access" v="private"/>
<select value="1" t="cycleway:bicycle" v="designated"/>
<select value="1" t="highway" v="motorway"/>
<select value="1" t="highway" v="motorway_link"/>
<select value="1" t="highway" v="trunk"/>
<select value="1" t="highway" v="trunk_link"/>
<select value="1" t="highway" v="primary"/>
<select value="1" t="highway" v="primary_link"/>
<select value="1" t="highway" v="secondary"/>
<select value="1" t="highway" v="secondary_link"/>
<select value="1" t="highway" v="tertiary"/>
<select value="1" t="highway" v="tertiary_link"/>
<select value="1" t="highway" v="unclassified"/>
<select value="1" t="highway" v="road"/>
<select value="1" t="highway" v="residential"/>
<select value="1" t="highway" v="service"/>
<select value="1" t="highway" v="living_street"/>
<select value="1" t="highway" v="cycleway"/>
<select value="1" t="highway" v="steps"/>
<select value="1" t="highway" v="track"/>
<select value="1" t="highway" v="path"/>
<select value="1" t="highway" v="footway"/>
<select value="-1"/>
</way>
<way attribute="oneway">
<select value="0" t="cycleway" v="opposite_lane"/>
<select value="0" t="cycleway" v="opposite_track"/>
<select value="0" t="cycleway" v="opposite_share_busway"/>
<select value="0" t="cycleway" v="opposite"/>
<select value="0" t="oneway:bicycle" v="no"/>
<select value="1" t="oneway:bicycle" v="yes"/>
<select value="-1" t="oneway:bicycle" v="-1"/>
<select value="1" t="oneway:vehicle" v="yes"/>
<select value="0" t="oneway:vehicle" v="no"/>
<select value="-1" t="oneway:vehicle" v="-1"/>
<select value="1" t="oneway" v="yes"/>
<select value="1" t="oneway" v="1"/>
<select value="-1" t="oneway" v="-1"/>
<!-- Following line because junction=circular is converted to roundabout, but is not necessarily oneway=yes -->
<select value="0" t="oneway" v="no"/>
<select value="1" t="roundabout" v="yes"/>
<select value="1" t="junction" v="roundabout"/>
</way>
<way attribute="speed" type="speed">
<select value="15" t="surface" v="asphalt"/>
<select value="10" t="highway" v="track"/><!-- 60 vmax profil/ 10 v track = 6 max pour priority-->
<select value="10" t="mtb:scale" v="0"/>
<select value="7" t="mtb:scale" v="1"/>
<select value="5" t="mtb:scale" v="2"/>
<select value="2" t="mtb:scale" v="3"/>
<select value="10" t="sac_scale" v="hiking"/>
<select value="5" t="sac_scale" v="mountain_hiking"/>
<select value="5" t="highway" v="path"/>
<select value="5" t="highway" v="steps"/>
<select value="5" t="highway" v="footway"/>
<select value="15" t="highway" v=""/> <!-- vitesse moyenne toutes routes-->
</way>
<way attribute="obstacle_srtm_alt_speed">
<if param="height_obstacles">
<gt value1="-100" value2=":incline">
<select value="-1" t="osmand_highway_integrity_brouting_low" v="yes"/>
<select value="-1" t="highway" v="path"/>
<select value="-1" t="highway" v="track"/>
</gt>
<gt value1="-25" value2=":incline">
<select value="180" t="osmand_highway_integrity_brouting_low" v="yes"/>
<select value="180" t="highway" v="path"/>
<select value="170" t="highway" v="track"/>
</gt>
<gt value1="-17" value2=":incline">
<select value="150" t="osmand_highway_integrity_brouting_low" v="yes"/>
<select value="150" t="highway" v="path"/>
<select value="140" t="highway" v="track"/>
</gt>
<gt value1="-9" value2=":incline">
<select value="30" t="osmand_highway_integrity_brouting_low" v="yes"/>
<select value="30" t="highway" v="path"/>
<select value="25" t="highway" v="track"/>
</gt>
<gt value1="-3" value2=":incline">
<select value="2" t="osmand_highway_integrity_brouting_low" v="yes"/>
<select value="2" t="highway" v="path"/>
<select value="2" t="highway" v="track"/>
</gt>
<if param="relief_smoothness_factor_more_plains">
<gt value1="3" value2=":incline">
<select value="2"/>
</gt>
<gt value1="7" value2=":incline">
<select value="12"/>
</gt>
<gt value1="13" value2=":incline">
<select value="30"/>
</gt>
<gt value1="25" value2=":incline">
<select value="50"/>
</gt>
<select value="74"/>
</if>
<if param="relief_smoothness_factor_hills">
<gt value1="0" value2=":incline">
<select value="128"/>
</gt>
<gt value1="3" value2=":incline">
<select value="64"/>
</gt>
<gt value1="7" value2=":incline">
<select value="17"/>
</gt>
<gt value1="13" value2=":incline">
<select value="10"/>
</gt>
<gt value1="25" value2=":incline">
<select value="8"/>
</gt>
<select value="2"/>
</if>
<gt value1="3" value2=":incline">
<select value="2"/>
</gt>
<gt value1="7" value2=":incline">
<select value="8"/>
</gt>
<gt value1="13" value2=":incline">
<select value="16"/>
</gt>
<gt value1="25" value2=":incline">
<select value="32"/>
</gt>
<select value="48"/>
</if>
</way>
<way attribute="priority">
<select value="0.1" t="highway" v="motorway"/>
<select value="0.1" t="highway" v="motorway_link"/>
<select value="0.1" t="highway" v="trunk"/>
<select value="0.1" t="highway" v="trunk_link"/>
<if param="avoid_chemin">
<select value="0.1" t="mtb:scale:uphill" v="5"/>
<select value="0.1" t="incline" v="60"/>
<select value="0.1" t="smoothness" v="impassable"/>
<select value="0.1" t="sac_scale" v="mountain_hiking"/>
<select value="0.1" t="mtb:scale" v="3"/>
<select value="0.1" t="highway" v="steps"/><!--escalier -->
<select value="0.1" t="mtb:scale" v="2"/>
<select value="0.1" t="sac_scale" v="hiking"/>
<select value="0.1" t="mtb:scale" v="0"/>
<select value="0.1" t="mtb:scale" v="1"/>
<select value="0.5" t="mtb" v="designated"/><!-- VTT -->
<select value="3" t="bicycle" v="designated"/><!-- velo -->
<select value="1.5" t="route_bicycle"/><!-- circuits velo -->
<select value="1" t="highway" v="cycleway"/>
<select value="0.15" t="highway" v="primary"/>
<select value="0.15" t="highway" v="primary_link"/>
<select value="0.25" t="highway" v="secondary"/>
<select value="0.25" t="highway" v="secondary_link"/>
<select value="0.35" t="surface" v="asphalt"/><!---->
<select value="0.35" t="surface" v="concrete"/><!---->
<select value="0.35" t="surface" v="concrete:lanes"/><!---->
<select value="0.35" t="surface" v="concrete:plates"/><!---->
<select value="0.35" t="surface" v="paved"/><!---->
<select value="0.35" t="surface" v="chipseal"/><!---->
<select value="0.35" t="surface" v="paving_stones"/><!---->
<select value="0.35" t="surface" v="sett"/><!---->
<select value="0.35" t="surface" v="compacted"/><!---->
<select value="0.35" t="surface" v="fine_gravel"/><!---->
<select value="0.1" t="highway" v="track"/><!--chemins -->
<select value="0.1" t="highway" v="path"/><!--sentiers -->
<select value="0.1" t="highway" v="footway"/><!--sentiers mal taggés -->
<select value="0.5" t="route" v="mtb"/><!-- circuits VTT -->
<select value="0.5" t="route_mtb"/><!-- circuits VTT -->
<select value="0.5" t="route_hiking"/><!-- circuits pedestre -->
<select value="0.35" t="highway" v="tertiary"/>
<select value="0.35" t="highway" v="tertiary_link"/>
<select value="0.35" t="highway" v="unclassified"/>
<select value="0.35" t="highway" v="road"/>
<select value="0.35" t="highway" v="residential"/>
<select value="0.35" t="highway" v="living_street"/>
<select value="0.35" t="tracktype" v="grade1"/><!---->
<select value="0.35" t="highway" v="service"/>
</if>
<select value="0.1" t="highway" v="primary"/>
<select value="0.1" t="highway" v="primary_link"/>
<select value="0.1" t="highway" v="secondary"/>
<select value="0.1" t="highway" v="secondary_link"/>
<select value="0.2" t="highway" v="tertiary"/>
<select value="0.2" t="highway" v="tertiary_link"/>
<select value="0.1" t="mtb:scale:uphill" v="5"/>
<select value="0.1" t="incline" v="60"/>
<select value="0.25" t="smoothness" v="impassable"/>
<select value="0.75" t="sac_scale" v="mountain_hiking"/>
<select value="0.75" t="mtb:scale" v="3"/>
<select value="1" t="highway" v="steps"/><!--escalier -->
<select value="1" t="mtb:scale" v="2"/>
<select value="3" t="sac_scale" v="hiking"/>
<select value="3" t="mtb:scale" v="0"/>
<select value="3" t="mtb" v="designated"/><!-- VTT -->
<select value="3" t="route" v="mtb"/><!-- circuits VTT -->
<select value="3" t="route_mtb"/><!-- circuits VTT -->
<select value="2" t="bicycle" v="designated"/><!-- velo -->
<select value="2" t="route_bicycle"/><!-- circuits velo -->
<select value="4" t="route_hiking"/><!-- circuits pedestre -->
<select value="2" t="mtb:scale" v="1"/>
<select value="1" t="highway" v="cycleway"/>
<select value="0.2" t="highway" v="unclassified"/>
<select value="0.2" t="highway" v="road"/>
<select value="0.2" t="highway" v="service"/>
<select value="0.2" t="highway" v="residential"/>
<select value="0.2" t="highway" v="living_street"/>
<select value="2" t="highway" v="path"/><!--sentiers -->
<select value="2" t="highway" v="track"/><!--chemins -->
<select value="2" t="highway" v="footway"/><!--sentiers mal taggés --><!--
<select value="0"/>tout le reste-->
</way>
<point attribute="obstacle">
<if param="avoid_interdit">
<select value="1" t="barrier" v="chain"/>
<select value="1" t="barrier" v="block"/>
<select value="1" t="access" v="no"/>
<select value="1" t="access" v="private"/>
</if>
<select value="-1" t="barrier" v="chain"/>
<select value="-1" t="barrier" v="jersey_barrier"/>
<select value="-1" t="barrier" v="horse_stile"/>
<select value="-1" t="barrier" v="kissing_gate"/>
<select value="-1" t="barrier" v="stile"/>
<select value="-1" t="barrier" v="block"/>
<select value="-1" t="barrier" v="turnstile"/>
<select value="-1" t="barrier" v="bus_trap"/>
<select value="-1" t="barrier" v="sump_buster"/>
<select value="-1" t="barrier" v="fence"/>
<select value="10" t="barrier" v="debris"/>
<select value="10" t="barrier" v="lift_gate"/>
<select value="20" t="barrier" v="bollard"/>
<select value="20" t="barrier" v="swing_gate"/>
<select value="30" t="barrier" v="yes"/>
<select value="30" t="barrier" v="gate"/>
<select value="30" t="barrier" v="entrance"/>
<select value="30" t="barrier" v="ditch"/>
<select value="-1" t="access" v="private"/>
<select value="-1" t="access" v="no"/>
</point>
</routingProfile>
</osmand_routing_config>