-
Notifications
You must be signed in to change notification settings - Fork 5
/
enduro.xml
242 lines (229 loc) · 11.4 KB
/
enduro.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
<?xml version="1.0" encoding="utf-8" ?>
<osmand_routing_config defaultProfile="enduro" name="enduro">
<attribute name="heuristicCoefficient" value="2.6" />
<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="enduro" baseProfile="enduro" restrictionsAware="true" minSpeed="1" defaultSpeed="40" maxSpeed="120" followSpeedLimitations="false" onewayAware="true">
<parameter id="avoid_interdit" name="pas d'interdiction" description="passe sur l'interdit" type="boolean"/>
<way attribute="access">
<select value="-1" t="osmand_change" v="delete"/>
<select value="-1" t="construction" v="yes"/>
<select value="-1" t="trail_visibility" v="no"/>
<select value="-1" t="mtb:scale" v="5"/>
<select value="-1" t="mtb:scale" v="6"/>
<select value="-1" t="dirtbike: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="motorcar" v="private"/>
<select value="1" t="motorcar" v="no"/>
<select value="1" t="motor_vehicle" v="private"/>
<select value="1" t="motor_vehicle" v="no"/>
<select value="1" t="vehicle" v="private"/>
<select value="1" t="vehicle" v="no"/>
<select value="1" t="bicycle" v="designated"/><!-- circuits velo/ voie verte -->
<select value="1" t="access" v="private"/>
<select value="1" t="access" v="no"/>
</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="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="highway" v="path"/>
<select value="1" t="highway" v="footway"/>
<select value="1" t="highway" v="steps"/>
<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="40" t="highway" v="track"/><!-- 120 vmax profil/ 40 v track = 3 max pour priority-->
<select value="40" t="mtb:scale" v="0"/>
<select value="40" t="mtb:scale" v="1"/>
<select value="20" t="mtb:scale" v="2"/>
<select value="10" t="mtb:scale" v="3"/>
<select value="30" t="dirtbike:scale" v="3"/>
<select value="10" t="dirtbike:scale" v="4"/>
<select value="5" t="dirtbike:scale" v="5"/>
<select value="40" t="sac_scale" v="hiking"/>
<select value="20" t="sac_scale" v="mountain_hiking"/>
<select value="20" t="highway" v="path"/><!-- 120 vmax profil/ 20 v path = 6 max pour priority-->
<select value="10" t="highway" v="steps"/>
<select value="20" t="highway" v="footway"/>
<select value="60" t="highway" v=""/><!-- vitesse moyenne toutes routes-->
</way>
<way attribute="priority">
<select value="0.1" t="highway" v="motorway"/>
<select value="0.1" t="highway" v="motorway_link"/>
<select value="0.15" t="highway" v="trunk"/>
<select value="0.15" t="highway" v="trunk_link"/>
<select value="0.2" t="highway" v="primary"/>
<select value="0.2" t="highway" v="primary_link"/>
<select value="0.25" t="smoothness" v="impassable"/>
<select value="0.5" t="mtb:scale:uphill" v="5"/>
<select value="0.75" t="dirtbike:scale" v="4"/>
<select value="0.25" t="dirtbike:scale" v="5"/>
<select value="6" t="sac_scale" v="hiking"/>
<select value="3" t="sac_scale" v="mountain_hiking"/>
<select value="6" t="mtb:scale" v="0"/>
<select value="6" t="mtb:scale" v="1"/>
<select value="3.5" t="mtb:scale" v="2"/>
<select value="1" t="mtb:scale" v="3"/>
<select value="0.25" t="mtb:scale" v="4"/>
<select value="0.2" t="highway" v="secondary"/>
<select value="0.2" 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.15" t="highway" v="footway"/>
<!-- balisages -->
<select value="6" t="mtb" v="designated"/>
<select value="6" t="route" v="mtb"/>
<select value="6" t="route_mtb"/><!-- -->
<select value="2.25" t="route_hiking"/>
<select value="2.25" t="route" v="hiking"/>
<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.2" t="highway" v="living_street"/>
<select value="0.15" t="highway" v="steps"/>
<select value="1.75" t="highway" v="track"/>
<select value="2.5" t="highway" v="path"/>
</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="motorcar" v="no"/>
<select value="1" t="motorcar" v="private"/>
<select value="1" t="motor_vehicle" v="no"/>
<select value="1" t="motor_vehicle" v="private"/>
<select value="1" t="vehicle" v="no"/>
<select value="1" t="vehicle" v="private"/>
<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="cycle_barrier"/>
<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="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>