-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvelomobil-tt.brf
286 lines (242 loc) · 8.32 KB
/
velomobil-tt.brf
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
# Brouter Profile for velomobiles
# Modification of vm-forum-velomobil-schnell.brf
---context:global
assign downhillcost 80
assign downhillcutoff 5 # ich will keine steilen Abfahrten, d.h. ich bestrafe nur steile Abfahrten.
# Teststrecke http://achter:17777/brouter?lonlats=11.748462,47.426694|11.778374,47.392365&nogos=&profile=custom_1443878593699&alternativeidx=0&format=gpx
assign uphillcost 180
# Teststrecke: http://achter:17777/brouter?lonlats=10.549622,48.109724|10.485592,48.076817&nogos=&profile=custom_1443878593699&alternativeidx=0&format=gpx
assign uphillcutoff 0.0 # ich fahre lieber steil hoch statt flach. Brouter hat aber keine Möglichkeit,
# um flache Anstiege zu bestrafen,also bestrafe ich alle Anstiege als Mittel, um flache Routen zu bevorzugen
assign validForBikes 1
assign validForCars 0
assign pass1coefficient 2.5
assign pass2coefficient 0
assign elevationpenaltybuffer 7 # alle Höhenunterschiede unter 10 Meter nimmt man im VM mit der kinetischen Energie
assign elevationmaxbuffer 20
assign elevationbufferreduce 0.3
---context:way
assign any_cycleroute or route_bicycle_icn=yes or route_bicycle_ncn=yes or route_bicycle_rcn=yes route_bicycle_lcn=yes
assign nodeaccessgranted or any_cycleroute lcn=yes
assign turncost 250
assign initialcost
switch route=ferry 15000
switch highway=steps 1000
switch highway=footway 1000
switch or highway=cycleway and highway=path bicycle=designated 800
0
assign oneway
switch oneway=
junction=roundabout
or oneway=yes or oneway=true oneway=1
assign onewaypenalty
switch switch reversedirection=yes oneway oneway=-1
switch or cycleway=opposite or cycleway=opposite_lane or cycleway=opposite_track oneway:bicycle=no 0
switch or highway=primary highway=primary_link 50
switch or highway=secondary highway=secondary_link 30
switch or highway=tertiary highway=tertiary_link 25
20.0
0.0
assign defaultaccess
switch access=
not motorroad=yes
switch or access=private access=no
0
1
assign bikeaccess
or any_cycleroute
switch bicycle=
switch vehicle=
defaultaccess
switch or vehicle=private vehicle=no
0
1
not or bicycle=private or bicycle=no bicycle=dismount
assign footaccess
or bikeaccess
or bicycle=dismount
switch foot=
defaultaccess
not or foot=private foot=no
assign accesspenalty
switch bikeaccess
0
switch footaccess
15
100000
assign downspeedpenalty
switch maxspeed=10 8
switch maxspeed=20 4
switch maxspeed=30 2.5
#switch maxspeed=50 1.5
0
assign flatspeedpenalty
switch maxspeed=10 6
switch maxspeed=20 3
switch maxspeed=30 2
#switch maxspeed=50 1.2
0
# http://localhost:8090/brouter-web/#zoom=14&lat=48.04707&lon=9.32747&layer=OpenStreetMap&lonlats=9.313316,48.057431|9.352112,48.049226&nogos=&profile=velomobil-tt&alternativeidx=0&format=geojson
# http://localhost:8090/brouter-web/#zoom=14&lat=48.02073&lon=9.24645&layer=OpenStreetMap&lonlats=9.234524,48.01519|9.266195,48.013066&nogos=&profile=velomobil-tt&alternativeidx=0&format=geojson
# http://localhost:8090/brouter-web/#zoom=14&lat=47.99448&lon=10.00528&layer=OpenStreetMap&lonlats=9.993954,47.995838|10.037813,48.022022&nogos=&alternativeidx=0&format=geojson
# http://localhost:8090/brouter-web/#zoom=13&lat=48.0091&lon=9.969&layer=OpenStreetMap&lonlats=10.037556,48.021908|9.993181,47.995666&nogos=&alternativeidx=0&format=geojson&profile=velomobil-tt
assign upspeedpenalty
switch maxspeed=10 3
switch maxspeed=20 1.5
switch maxspeed=30 1
0
assign surfacepenalty
switch or surface=asphalt surface=paved 0
switch or surface=concrete surface=paving_stones 0.5
switch or surface=cobblestone or surface=fine_gravel surface=compacted 5
switch or surface=gravel or surface=sand surface=pebblestone 10
switch or surface=ground or surface=grass or surface=unpaved surface=dirt 50 0
assign costfactor
add onewaypenalty
add accesspenalty
add surfacepenalty
add flatspeedpenalty
add switch junction=roundabout 1
0
switch and highway= not route=ferry 100000
switch or highway=proposed or highway=construction highway=abandoned 100000
switch or highway=motorway highway=motorway_link 100000
switch route=ferry 10.67
switch or highway=trunk highway=trunk_link 2.5
switch or highway=primary highway=primary_link 1.2
switch or highway=secondary highway=secondary_link 1
switch or highway=tertiary highway=tertiary_link 1.1
switch highway=unclassified 1.2
switch or highway=residential highway=service 2.7
switch highway=track
switch tracktype=grade1 1.8
# Tested: http://achter:17777/brouter?lonlats=9.348764,47.9886|9.348979,47.977656&nogos=&profile=custom_1443878593699&alternativeidx=0&format=gpx
switch tracktype=grade2 10
switch tracktype=grade3 40
switch tracktype=grade4 50
switch tracktype=grade5 50
20
switch highway=cycleway 2.5
switch highway=living_street 5
switch highway=road 10
switch highway=footway 30
switch highway=pedestrian 30
switch highway=steps 40
switch highway=path
switch bicycle=designated
switch surface= 20
2.5
40
switch highway=bridleway 80
20
assign uphillcostfactor
add upspeedpenalty
add onewaypenalty
add accesspenalty
add surfacepenalty
add switch junction=roundabout 0.1
0
switch and highway= not route=ferry 100000
switch or highway=proposed or highway=construction highway=abandoned 100000
switch or highway=motorway highway=motorway_link 100000
switch route=ferry 10.67
switch or highway=trunk highway=trunk_link 6.5
switch or highway=primary highway=primary_link 3
switch or highway=secondary highway=secondary_link 1.5
switch or highway=tertiary highway=tertiary_link 1
switch highway=unclassified 1
switch or highway=residential highway=service 1.5
switch highway=track
switch tracktype=grade1 1.5
switch tracktype=grade2 10
switch tracktype=grade3 40
switch tracktype=grade4 50
switch tracktype=grade5 50 20
switch highway=cycleway 2
switch highway=living_street 5
switch highway=road 10
switch highway=footway 30
switch highway=pedestrian 30
switch highway=steps 40
switch highway=path
switch bicycle=designated
switch surface= 20
2
40
switch highway=bridleway 80
20
assign downhillcostfactor
add downspeedpenalty
add onewaypenalty
add accesspenalty
add surfacepenalty
add switch junction=roundabout 2 # Kreisverkehr
0
switch and highway= not route=ferry 100000
switch or highway=proposed or highway=construction highway=abandoned 100000
switch or highway=motorway highway=motorway_link 100000
switch route=ferry 10.67
switch or highway=trunk highway=trunk_link 1.1
switch or highway=primary highway=primary_link 1.1
switch or highway=secondary highway=secondary_link 1
switch or highway=tertiary highway=tertiary_link 1.1
switch highway=unclassified 1.7
switch or highway=residential highway=service 3.5
switch highway=track
switch tracktype=grade1 4
switch tracktype=grade2 20
switch tracktype=grade3 40
switch tracktype=grade4 60
switch tracktype=grade5 50 20
switch highway=cycleway 5
switch highway=living_street 8
switch highway=road 10
switch highway=footway 30
switch highway=pedestrian 30
switch highway=steps 40
switch highway=path
switch bicycle=designated
switch surface= 20
5
40
switch highway=bridleway 80
20
---context:node # following code refers to node tags
assign defaultaccess
switch access=
1 # add default barrier restrictions here!
switch or access=private access=no
0
1
assign bikeaccess
or nodeaccessgranted=yes
switch bicycle=
switch vehicle=
defaultaccess
switch or vehicle=private vehicle=no
0
1
switch or bicycle=private or bicycle=no bicycle=dismount
0
1
assign footaccess
or bicycle=dismount
switch foot=
defaultaccess
switch or foot=private foot=no
0
1
assign initialcost
add switch highway=traffic_signals 350
switch highway=stop 250
switch highway=give_way 150 # Vorfahrt achten
switch or railway=crossing railway=level_crossing 300 # Bahnübergang
switch highway=crossing 10 # Zebrastreifen
switch highway=mini_roundabout 10 # Kreisverkehr mit überfahrbarer Mittelinsel
switch highway=city_entry 100 # Ortseingang (auch -ausgang?), nicht im OSM-Wiki beschrieben
0
switch bikeaccess
0
switch footaccess
10000
1000000