-
Notifications
You must be signed in to change notification settings - Fork 5
/
petit_trail.xml
364 lines (355 loc) · 17.9 KB
/
petit_trail.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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
<?xml version="1.0" encoding="utf-8" ?>
<osmand_routing_config defaultProfile="petit_trail" name="petit_trail">
<attribute name="heuristicCoefficient" value="3.4" /><!-- 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="petit_trail" baseProfile="petit_trail" restrictionsAware="true" minSpeed="1" defaultSpeed="40" maxSpeed="110" followSpeedLimitations="false" onewayAware="true">
<parameter id="avoid_balisage" name="pas de chemins balisés" description="evite les chemins balisés" type="boolean"/>
<parameter id="avoid_grade" name="trie les chemins" description="priorité aux chemins carrossables" type="boolean"/>
<parameter id="avoid_interdit" name="pas d'interdiction" description="passe sur l'interdit" type="boolean"/>
<parameter id="avoid_borders" name="Avoid border crossing" description="Avoid crossing a border into another country" type="boolean"/>
<parameter id="avoid_sentier" name="plus direct" description="plus direct" type="boolean"/>
<parameter id="allow_private" name="Allow private access" description="Allow access to private areas" type="boolean"/>
<parameter id="avoid_track" name="moins de route" description="pour trajet de moins de 200 km" type="boolean"/>
<way attribute="access">
<select value="-1" t="osmand_change" v="delete"/>
<select value="-1" t="construction" v="yes"/>
<select value="-1" t="smoothness" v="impassable"/>
<select value="-1" t="dirtbike:scale" v="4"/>
<select value="-1" t="dirtbike:scale" v="5"/>
<select value="-1" t="dirtbike:scale" v="6"/>
<select value="-1" t="mtb:scale" v="2"/>
<select value="-1" t="mtb:scale" v="3"/>
<select value="-1" t="mtb:scale" v="4"/>
<select value="-1" t="mtb:scale" v="5"/>
<select value="-1" t="sac_scale " v="mountain_hiking "/>
<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 "/>
<select value="-1" t="highway" v="footway"/>
<select value="-1" t="highway" v="cycleway"/>
<select value="1" t="ford" v="yes"/>
<if param="avoid_toll">
<select value="-1" t="toll" v="yes"/>
</if>
<if param="allow_private">
<select value="1" t="motorcar" v="private"/>
<select value="1" t="motor_vehicle" v="private"/>
<select value="1" t="vehicle" v="private"/>
<select value="1" t="access" v="private"/>
</if>
<if param="avoid_interdit">
<select value="1" t="motorcar" v="no"/>
<select value="1" t="motorcar" v="private"/>
<select value="1" t="motorcar" v="destination"/>
<select value="1" t="motorcar" v="customers"/>
<select value="1" t="motorcar" v="agricultural"/>
<select value="1" t="motorcar" v="forestry"/>
<select value="1" t="motor_vehicle" v="no"/>
<select value="1" t="motor_vehicle" v="private"/>
<select value="1" t="motor_vehicle" v="destination"/>
<select value="1" t="motor_vehicle" v="customers"/>
<select value="1" t="motor_vehicle" v="forestry"/>
<select value="1" t="motor_vehicle" v="agricultural"/>
<select value="1" t="vehicle" v="no"/>
<select value="1" t="vehicle" v="private"/>
<select value="1" t="vehicle" v="destination"/>
<select value="1" t="vehicle" v="customers"/>
<select value="1" t="vehicle" v="agricultural"/>
<select value="1" t="vehicle" v="forestry"/>
<select value="1" t="bicycle" v="designated"/><!-- circuits velo/ voie verte -->
<select value="1" t="access" v="no"/>
<select value="1" t="access" v="private"/>
<select value="1" t="access" v="destination"/>
<select value="1" t="access" v="customers"/>
<select value="1" t="access" v="agricultural"/>
<select value="1" t="access" v="forestry"/>
</if>
<select value="-1" t="motorcar" v="no"/>
<select value="-1" t="motorcar" v="private"/>
<select value="-1" t="motorcar" v="destination"/>
<select value="-1" t="motorcar" v="customers"/>
<select value="-1" t="motorcar" v="agricultural"/>
<select value="-1" t="motorcar" v="forestry"/>
<select value="1" t="motorcar" v="yes"/>
<select value="1" t="motorcar" v="permissive"/>
<select value="1" t="motorcar" v="designated"/>
<select value="1" t="motorcar" v="official"/>
<select value="-1" t="motor_vehicle" v="no"/>
<select value="-1" t="motor_vehicle" v="private"/>
<select value="-1" t="motor_vehicle" v="destination"/>
<select value="-1" t="motor_vehicle" v="customers"/>
<select value="-1" t="motor_vehicle" v="forestry"/>
<select value="-1" t="motor_vehicle" v="agricultural"/>
<select value="1" t="motor_vehicle" v="yes"/>
<select value="1" t="motor_vehicle" v="permissive"/>
<select value="1" t="motor_vehicle" v="designated"/>
<select value="1" t="motor_vehicle" v="official"/>
<select value="-1" t="vehicle" v="no"/>
<select value="-1" t="vehicle" v="private"/>
<select value="-1" t="vehicle" v="destination"/>
<select value="-1" t="vehicle" v="customers"/>
<select value="-1" t="vehicle" v="agricultural"/>
<select value="-1" t="vehicle" v="forestry"/>
<select value="1" t="vehicle" v="yes"/>
<select value="1" t="vehicle" v="permissive"/>
<select value="1" t="vehicle" v="designated"/>
<select value="-1" t="bicycle" v="designated"/><!-- circuits velo/ voie verte -->
<select value="-1" t="access" v="no"/>
<select value="-1" t="access" v="private"/>
<select value="-1" t="access" v="destination"/>
<select value="-1" t="access" v="customers"/>
<select value="-1" t="access" v="agricultural"/>
<select value="-1" t="access" v="forestry"/>
<select value="1" t="access" v="emergency"/>
<select value="1" t="access" v="yes"/>
<select value="1" t="access" v="permissive"/>
<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="path"/>
<select value="1" t="highway" v="residential"/>
<select value="1" t="highway" v="track"/>
<select value="1" t="highway" v="service"/>
<select value="1" t="highway" v="living_street"/>
<select value="1" t="route" v="ferry"/>
<select value="1" t="route" v="shuttle_train"/>
<select value="-1"/>
</way>
<way attribute="oneway">
<select value="1" t="oneway:motorcar" v="yes"/>
<select value="0" t="oneway:motorcar" v="no"/>
<select value="-1" t="oneway:motorcar" v="-1"/>
<select value="1" t="oneway:motor_vehicle" v="yes"/>
<select value="0" t="oneway:motor_vehicle" v="no"/>
<select value="-1" t="oneway:motor_vehicle" 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"/>
<select value="1" t="roundabout"/>
<select value="1" t="junction" v="roundabout"/>
</way>
<way attribute="speed" type="speed">
<select value="30" t="dirtbike:scale" v="1"/>
<select value="20" t="dirtbike:scale" v="2"/>
<select value="5" t="dirtbike:scale" v="3"/>
<!-- sentier facile vers difficile -->
<select value="30" t="sac_scale " v="hiking"/>
<select value="30" t="mtb:scale" v="0"/>
<select value="10" t="mtb:scale" v="1"/>
<select value="5" t="highway" v="path"/>
<!-- chemins du plus dur au plus roulant -->
<select value="10" t="smoothness" v="very_horrible"/>
<select value="10" t="surface" v="mud"/>
<select value="10" t="ford" v="yes"/>
<select value="20" t="surface" v="grass"/>
<select value="20" t="surface" v="sand"/><!-- idem track generique
<select value="30" t="surface" v="dirt"/>
<select value="30" t="surface" v="earth"/>
<select value="30" t="surface" v="unpaved"/>
<select value="30" t="surface" v="ground"/>
<select value="30" t="tracktype" v="grade5"/>-->
<select value="35" t="tracktype" v="grade4"/>
<select value="40" t="surface" v="pebblestone"/>
<select value="45" t="surface" v="gravel"/>
<select value="50" t="tracktype" v="grade3"/>
<select value="55" t="surface" v="compacted"/>
<select value="55" t="surface" v="paved"/>
<select value="55" t="surface" v="paving_stones"/>
<select value="55" t="surface" v="fine_gravel"/>
<select value="55" t="surface" v="asphalt"/>
<select value="55" t="surface" v="concrete"/>
<select value="55" t="tracktype" v="grade2"/>
<select value="55" t="surface" v="chipseal"/>
<select value="55" t="tracktype" v="grade1"/>
<select value="30" t="highway" v="track"/><!-- 110 vmax profil/ 30 v track = 3.5 max pour priority-->
<!-- routes
<select value="45" t="highway" v="unclassified"/>
<select value="45" t="highway" v="road"/>
<select value="45" t="highway" v="service"/>
<select value="45" t="highway" v="residential"/>-->
<select value="55" t="highway" v=""/>
<!--
<select value="0"/>tout le reste-->
</way>
<way attribute="priority">
<if param="avoid_sentier"><!-- plus direct -->
<select value="0.25" t="highway" v="path"/><!--sentiers -->
<select value="3" t="highway" v="track"/><!--chemins -->
<select value="0.75" t="highway"/><!--routes -->
</if>
<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"/>
<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"/>
<if param="avoid_track"><!-- moins de route -->
<select value="0.25" t="highway" v="tertiary"/>
<select value="0.25" t="highway" v="tertiary_link"/>
<select value="0.35" t="highway" v="unclassified"/>
<select value="0.35" t="highway" v="road"/>
<select value="0.5" t="highway" v="service"/>
<select value="0.5" t="highway" v="residential"/>
<select value="0.35" t="highway" v="living_street"/>
</if>
<select value="0.45" t="highway" v="tertiary"/>
<select value="0.45" t="highway" v="tertiary_link"/>
<select value="0.55" t="highway" v="unclassified"/>
<select value="0.55" t="highway" v="road"/>
<select value="1" t="highway" v="service"/>
<select value="1" t="highway" v="residential"/>
<select value="0.55" t="highway" v="living_street"/>
<if param="avoid_balisage"><!-- pas de chemins balisés-->
<select value="0.1" t="route" v="mtb"/><!-- circuits VTT -->
<select value="0.1" t="route_mtb"/><!-- circuits VTT -->
<select value="0.1" t="route" v="hiking"/><!-- circuits pedestre -->
<select value="0.1" t="route_hiking"/><!-- circuits pedestre -->
</if>
<if param="avoid_grade"><!-- trie les chemins -->
<select value="2" t="sac_scale " v="hiking"/>
<select value="2" t="mtb:scale" v="0"/>
<select value="1" t="mtb:scale" v="1"/>
<select value="0.25" t="highway" v="path"/>
<select value="0.5" t="smoothness" v="very_horrible"/>
<select value="0.5" t="surface" v="mud"/>
<select value="1" t="surface" v="sand"/>
<select value="1" t="surface" v="grass"/>
<select value="1.75" t="tracktype" v="grade5"/>
<select value="2.75" t="tracktype" v="grade4"/>
<select value="3.5" t="surface" v="compacted"/>
<select value="3.5" t="surface" v="gravel"/>
<select value="3.5" t="surface" v="pebblestone"/>
<select value="3.5" t="surface" v="cobblestone"/>
<select value="3.5" t="surface" v="unhewn_cobblestone"/>
<select value="3.5" t="surface" v="paved"/>
<select value="3.5" t="surface" v="paving_stones"/>
<select value="3.5" t="tracktype" v="grade3"/>
<select value="3.5" t="surface" v="fine_gravel"/>
<select value="3.5" t="surface" v="asphalt"/>
<select value="3.5" t="surface" v="metal"/>
<select value="3.5" t="surface" v="chipseal"/>
<select value="3.5" t="surface" v="wood"/>
<select value="3.5" t="tracktype" v="grade2"/>
<select value="3.5" t="surface" v="concrete"/>
<select value="3.5" t="tracktype" v="grade1"/>
<select value="2.5" t="highway" v="track"/><!--20 chemins non taggés-->
</if>
<select value="3.0" t="dirtbike:scale" v="1"/>
<select value="2.5" t="dirtbike:scale" v="2"/>
<select value="1.0" t="dirtbike:scale" v="3"/>
<select value="3.5" t="sac_scale " v="hiking"/><!-- 30 -->
<select value="3.5" t="mtb:scale" v="0"/><!-- 30 -->
<select value="3.5" t="highway" v="track"/><!--chemins non taggés -->
<select value="2.5" t="mtb:scale" v="1"/><!-- 10 -->
<select value="0.25" t="highway" v="path"/><!--sentiers non taggés -->
<select value="0"/><!-- tout le reste -->
</way>
<point attribute="obstacle">
<if param="avoid_borders">
<select value="-1" t="barrier" v="border_control"/>
</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="cycle_barrier"/>
<select value="-1" t="barrier" v="sump_buster"/>
<select value="-1" t="barrier" v="fence"/>
<select value="30" t="barrier" v="debris"/>
<select value="30" t="barrier" v="lift_gate"/>
<select value="50" t="barrier" v="bollard"/>
<select value="50" t="barrier" v="swing_gate"/>
<select value="50" t="barrier" v="yes"/>
<select value="50" t="barrier" v="gate"/>
<select value="100" t="barrier" v="entrance"/>
<select value="200" t="barrier" v="ditch"/>
<if param="allow_private">
<select value="1" t="motorcar" v="private"/>
<select value="1" t="motor_vehicle" v="private"/>
<select value="1" t="vehicle" v="private"/>
<select value="1" t="access" v="private"/>
</if>
<if param="avoid_interdit">
<select value="1" t="motorcar" v="no"/>
<select value="1" t="motorcar" v="private"/>
<select value="1" t="motorcar" v="destination"/>
<select value="1" t="motorcar" v="customers"/>
<select value="1" t="motorcar" v="agricultural"/>
<select value="1" t="motorcar" v="forestry"/>
<select value="1" t="motor_vehicle" v="no"/>
<select value="1" t="motor_vehicle" v="private"/>
<select value="1" t="motor_vehicle" v="destination"/>
<select value="1" t="motor_vehicle" v="customers"/>
<select value="1" t="motor_vehicle" v="agricultural"/>
<select value="1" t="motor_vehicle" v="forestry"/>
<select value="1" t="vehicle" v="no"/>
<select value="1" t="vehicle" v="private"/>
<select value="1" t="vehicle" v="destination"/>
<select value="1" t="vehicle" v="customers"/>
<select value="1" t="vehicle" v="agricultural"/>
<select value="1" t="vehicle" v="forestry"/>
<select value="1" t="access" v="no"/>
<select value="1" t="access" v="private"/>
<select value="1" t="access" v="destination"/>
<select value="1" t="access" v="customers"/>
<select value="1" t="access" v="agricultural"/>
<select value="1" t="access" v="forestry"/>
</if>
<select value="-1" t="motorcar" v="private"/>
<select value="-1" t="motorcar" v="no"/>
<select value="-1" t="motorcar" v="destination"/>
<select value="-1" t="motorcar" v="customers"/>
<select value="-1" t="motorcar" v="agricultural"/>
<select value="-1" t="motorcar" v="forestry"/>
<select value="-1" t="motor_vehicle" v="private"/>
<select value="-1" t="motor_vehicle" v="no"/>
<select value="-1" t="motor_vehicle" v="destination"/>
<select value="-1" t="motor_vehicle" v="customers"/>
<select value="-1" t="motor_vehicle" v="agricultural"/>
<select value="-1" t="motor_vehicle" v="forestry"/>
<select value="-1" t="vehicle" v="private"/>
<select value="-1" t="vehicle" v="no"/>
<select value="-1" t="vehicle" v="destination"/>
<select value="-1" t="vehicle" v="customers"/>
<select value="-1" t="vehicle" v="agricultural"/>
<select value="-1" t="vehicle" v="forestry"/>
<select value="-1" t="access" v="private"/>
<select value="-1" t="access" v="no"/>
<select value="-1" t="access" v="destination"/>
<select value="-1" t="access" v="customers"/>
<select value="-1" t="access" v="agricultural"/>
<select value="-1" t="access" v="forestry"/>
</point>
</routingProfile>
</osmand_routing_config>