diff --git a/brouter-map-creator/src/test/resources/all.brf.BAK b/brouter-map-creator/src/test/resources/all.brf.BAK deleted file mode 100644 index d5d5168..0000000 --- a/brouter-map-creator/src/test/resources/all.brf.BAK +++ /dev/null @@ -1,11 +0,0 @@ ----context:global # following code refers to global config - ----context:way # following code refers to way-tags - -assign turncost 0 -assign initialcost 0 -assign costfactor 1 - ----context:node # following code refers to node tags - -assign initialcost 0 diff --git a/brouter-routing-app/src/main/resources/brouter/profiles2/car-test.brf b/brouter-routing-app/src/main/resources/brouter/profiles2/car-test.brf deleted file mode 100644 index b2c2ce7..0000000 --- a/brouter-routing-app/src/main/resources/brouter/profiles2/car-test.brf +++ /dev/null @@ -1,105 +0,0 @@ -# -# Car-Routing is experimantal !!! -# -# DO NOT USE FOR ACTUAL NAVIGATION -# -# Turn restrictions are missing, leading to wrong routes -# - ----context:global - -assign downhillcost 0 -assign downhillcutoff 0 -assign uphillcost 0 -assign uphillcutoff 0 - ----context:way # following code refers to way-tags - -assign turncost 200 -assign initialcost switch highway=ferry 20000 0 - - -# -# calculate logical car access -# -assign caraccess - switch motorcar= - switch motor_vehicle= - switch vehicle= - switch access= - switch or highway=motorway highway=motorway_link 1 - switch or highway=trunk highway=trunk_link 1 - switch or highway=primary highway=primary_link 1 - switch or highway=secondary highway=secondary_link 1 - switch or highway=tertiary highway=tertiary_link 1 - switch highway=unclassified 1 - switch highway=ferry 1 - switch or highway=residential highway=living_street 1 - switch highway=service 1 - 0 - or access=yes or access=designated access=destination - or vehicle=yes or vehicle=designated vehicle=destination - or motor_vehicle=yes or motor_vehicle=designated motor_vehicle=destination - or motorcar=yes or motorcar=designated motorcar=destination - -assign accesspenalty - switch caraccess - 0 - 10000 - -assign onewaypenalty - switch switch reversedirection=yes - switch oneway= - junction=roundabout - or oneway=yes or oneway=true oneway=1 - oneway=-1 - 10000 - 0.0 - - -assign ispaved or surface=paved or surface=asphalt or surface=concrete surface=paving_stones - -assign costfactor - - add max onewaypenalty accesspenalty - - switch or highway=motorway highway=motorway_link 1 - switch or highway=trunk highway=trunk_link 1 - switch or highway=primary highway=primary_link switch maxspeed=30 2.0 switch maxspeed=50 1.5 1.2 - switch or highway=secondary highway=secondary_link 1.3 - switch or highway=tertiary highway=tertiary_link 1.4 - switch highway=unclassified 1.5 - switch highway=ferry 5.67 - switch highway=bridleway 5 - switch or highway=residential highway=living_street 2 - switch highway=service 2 - switch or highway=track or highway=road highway=path - switch tracktype=grade1 5 - switch ispaved 5 - 30 - 10000 - ----context:node # following code refers to node tags - -# -# calculate logical car access to nodes -# -assign caraccess - switch motorcar= - switch motor_vehicle= - switch vehicle= - switch access= - switch barrier=gate 0 - switch barrier=bollard 0 - switch barrier=lift_gate 0 - switch barrier=cycle_barrier 0 - 1 - or access=yes or access=designated access=destination - or vehicle=yes or vehicle=designated vehicle=destination - or motor_vehicle=yes or motor_vehicle=designated motor_vehicle=destination - or motorcar=yes or motorcar=designated motorcar=destination - -assign initialcost - switch caraccess - 0 - 1000000 diff --git a/brouter-routing-app/src/main/resources/brouter/profiles2/fastbike.brf b/brouter-routing-app/src/main/resources/brouter/profiles2/fastbike.brf deleted file mode 100644 index 47d605e..0000000 --- a/brouter-routing-app/src/main/resources/brouter/profiles2/fastbike.brf +++ /dev/null @@ -1,164 +0,0 @@ -# -# A fastbike could be a racing bike or a speed pedelec. -# But also at night or in rainy whether you might want -# to fallback to this one. -# -# Structure is similar to trekking.brf, see this for documenation. -# - ----context:global # following code refers to global config - -# Use the following switches to change behaviour -# (1=yes, 0=no): - -assign consider_elevation 1 # set to 0 to ignore elevation in routing -assign allow_steps 1 # set to 0 to disallow steps -assign allow_ferries 1 # set to 0 to disallow ferries -assign ignore_cycleroutes 0 # set to 1 for better elevation results -assign stick_to_cycleroutes 0 # set to 1 to just follow cycleroutes -assign avoid_unsafe 0 # set to 1 to avoid standard highways - -# the elevation parameters - -assign downhillcost switch consider_elevation 60 0 -assign downhillcutoff 1.5 -assign uphillcost 0 -assign uphillcutoff 1.5 - ----context:way # following code refers to way-tags - - - -assign ispaved or surface=paved or surface=asphalt or surface=concrete surface=paving_stones -assign isunpaved not or surface= or ispaved or surface=fine_gravel surface=cobblestone - -assign turncost 90 - -assign initialcost switch highway=ferry 10000 0 - -# -# implicit access here just from the motorroad tag -# (implicit access rules from highway tag handled elsewhere) -# -assign defaultaccess - switch access= - not motorroad=yes - switch or access=private access=no - 0 - 1 - -# -# calculate logical bike access -# -assign bikeaccess - or longdistancecycleway=yes - switch bicycle= - switch vehicle= - defaultaccess - switch or vehicle=private vehicle=no - 0 - 1 - not or bicycle=private or bicycle=no bicycle=dismount - -# -# calculate logical foot access -# -assign footaccess - or bikeaccess - or bicycle=dismount - switch foot= - defaultaccess - not or foot=private foot=no - -# -# if not bike-, but foot-acess, just a moderate penalty, -# otherwise access is forbidden -# -assign accesspenalty - switch bikeaccess - 0 - switch footaccess - 6 - 100000 - -# -# handle one-ways. On primary roads, wrong-oneways should -# be close to forbidden, while on other ways we just add -# 4 to the costfactor (making it at least 5 - you are allowed -# to push your bike) -# -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 cycleway=opposite_track 0 - switch or highway=primary highway=primary_link 50 - switch or highway=secondary highway=secondary_link 30 - switch or highway=tertiary highway=tertiary_link 20 - 6.0 - 0.0 - -assign costfactor - - add max onewaypenalty accesspenalty - - switch or highway=motorway highway=motorway_link 100000 - switch highway=proposed 100000 - switch or highway=trunk highway=trunk_link 10 - switch or highway=primary highway=primary_link 1.2 - switch or highway=secondary highway=secondary_link 1.1 - switch or highway=tertiary highway=tertiary_link 1.0 - switch highway=unclassified 1.1 - switch highway=pedestrian 10 - switch highway=steps 1000 - switch highway=ferry 5.67 - switch highway=bridleway 5 - switch highway=cycleway 1.3 - switch or highway=residential highway=living_street switch isunpaved 10 1.2 - switch highway=service switch isunpaved 10 1.2 - switch or highway=track or highway=road or highway=path highway=footway - switch tracktype=grade1 switch isunpaved 3 1.2 - switch tracktype=grade2 switch isunpaved 10 3 - switch tracktype=grade3 10.0 - switch tracktype=grade4 20.0 - switch tracktype=grade5 30.0 - switch ispaved 2.0 100.0 - 10.0 - ----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 or longdistancecycleway=yes lcn=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 - switch bikeaccess - 0 - switch footaccess - 300 - 1000000 diff --git a/brouter-routing-app/src/main/resources/brouter/profiles2/lookups.dat b/brouter-routing-app/src/main/resources/brouter/profiles2/lookups.dat deleted file mode 100644 index 6bf1a31..0000000 --- a/brouter-routing-app/src/main/resources/brouter/profiles2/lookups.dat +++ /dev/null @@ -1,317 +0,0 @@ ----lookupversion:2 - ----context:way - -highway;0001731794 track -highway;0001457935 residential -highway;0000968516 service -highway;0000756237 footway -highway;0000521566 path -highway;0000261772 unclassified -highway;0000220315 secondary -highway;0000207585 tertiary -highway;0000103445 steps -highway;0000102114 primary -highway;0000094484 cycleway -highway;0000090388 living_street -highway;0000035041 motorway -highway;0000029965 pedestrian -highway;0000026875 motorway_link -highway;0000015054 trunk -highway;0000014604 primary_link -highway;0000012211 road -highway;0000011822 trunk_link -highway;0000005882 construction -highway;0000005425 bridleway -highway;0000005180 secondary_link -highway;0000003360 platform -highway;0000002616 proposed abandoned -highway;0000001374 tertiary_link -highway;0000000760 ferry -highway;0000000541 raceway -highway;0000000346 rest_area -highway;0000000300 bus_stop -highway;0000000184 services - -tracktype;0000356503 grade2 -tracktype;0000353482 grade3 -tracktype;0000281625 grade1 -tracktype;0000245193 grade4 -tracktype;0000179135 grade5 - -surface;0000363915 asphalt -surface;0000303589 paved -surface;0000196783 gravel -surface;0000137371 ground -surface;0000128215 grass -surface;0000092748 unpaved -surface;0000086579 paving_stones -surface;0000066111 cobblestone -surface;0000042061 dirt -surface;0000026551 concrete -surface;0000025631 compacted -surface;0000019861 sand -surface;0000009400 pebblestone -surface;0000003197 fine_gravel - -maxspeed;0000402224 30 -maxspeed;0000224685 50 -maxspeed;0000045177 100 -maxspeed;0000037529 70 -maxspeed;0000014237 none -maxspeed;0000014022 60 -maxspeed;0000011530 80 -maxspeed;0000009951 10 -maxspeed;0000008056 20 -maxspeed;0000005772 120 -maxspeed;0000003165 40 -maxspeed;0000002987 7 -maxspeed;0000002826 signals -maxspeed;0000001933 130 - -service;0000221481 parking_aisle -service;0000157110 driveway - -lit;0000132495 yes - -lanes;0000098207 2 -lanes;0000042192 1 -lanes;0000018533 3 -lanes;0000004577 4 -lanes;0000000448 5 -lanes;0000000318 1.5 - -access;0000044859 yes permissive -access;0000008452 designated official -access;0000028727 destination customers -access;0000076985 agricultural forestry -access;0000116270 private -access;0000028044 no - -foot;0000339384 yes allowed Yes -foot;0000125339 designated official -foot;0000018945 no -foot;0000001562 private -foot;0000000279 destination -foot;0000008172 permissive - -bicycle;0000302789 yes allowed permissive -bicycle;0000108056 designated official -bicycle;0000000265 destination -bicycle;0000003593 dismount -bicycle;0000001426 private -bicycle;0000070179 no - -motorcar;0000010111 yes permissive -motorcar;0000001537 designated official -motorcar;0000007102 destination -motorcar;0000016706 agricultural forestry agriculture -motorcar;0000002178 private -motorcar;0000077771 no - -motor_vehicle;0000013813 yes permissive -motor_vehicle;0000002098 designated official -motor_vehicle;0000009792 destination -motor_vehicle;0000019301 agricultural forestry -motor_vehicle;0000006563 private -motor_vehicle;0000025491 no - -motorcycle;0000005750 yes permissive -motorcycle;0000001158 designated official -motorcycle;0000005805 destination -motorcycle;0000012401 agricultural forestry -motorcycle;0000001180 private -motorcycle;0000053955 no - -vehicle;0000000505 yes permissive -vehicle;0000000027 designated -vehicle;0000007582 destination -vehicle;0000004357 agricultural forestry -vehicle;0000001155 private -vehicle;0000006487 no - -cycleway;0000033575 track -cycleway;0000012829 no -cycleway;0000011604 lane -cycleway;0000008938 opposite -cycleway;0000001503 none -cycleway;0000001146 right -cycleway;0000001031 opposite_track -cycleway;0000001029 yes -cycleway;0000000856 opposite_lane -cycleway;0000000675 both -cycleway;0000000665 left -cycleway;0000000521 shared -cycleway;0000000383 street -cycleway;0000000176 segregated - -mtb:scale;0000043968 0 -mtb:scale;0000019705 1 -mtb:scale;0000006436 2 -mtb:scale;0000002702 3 -mtb:scale;0000001083 4 -mtb:scale;0000000329 5 - -sac_scale;0000049626 hiking -sac_scale;0000007933 mountain_hiking -sac_scale;0000001160 demanding_mountain_hiking -sac_scale;0000000523 yes -sac_scale;0000000364 alpine_hiking -sac_scale;0000000117 demanding_alpine_hiking - -noexit;0000058492 yes - -motorroad;0000019250 yes - -oneway;0000330245 yes -oneway;0000075148 no -oneway;0000003679 -1 -oneway;0000000001 true -oneway;0000000001 1 - -junction;0000015929 roundabout - -bridge;0000182649 yes viaduct true suspension - -tunnel;0000031626 yes - -lcn;0000018999 yes - -longdistancecycleway;0000000001 yes - -reversedirection;0000000001 yes - ----context:node - -highway;0000100947 turning_circle -highway;0000067645 traffic_signals -highway;0000047209 crossing -highway;0000037164 bus_stop -highway;0000006577 motorway_junction -highway;0000003811 stop -highway;0000002331 mini_roundabout -highway;0000001789 milestone -highway;0000001692 passing_place -highway;0000001289 give_way -highway;0000001092 emergency_access_point -highway;0000000683 speed_camera -highway;0000000672 steps -highway;0000000658 incline_steep -highway;0000000620 elevator -highway;0000000506 street_lamp -highway;0000000490 ford -highway;0000000458 incline -highway;0000000135 rest_area -highway;0000000105 path -highway;0000000098 emergency_bay -highway;0000000096 road -highway;0000000087 platform -highway;0000000074 services -highway;0000000058 track -highway;0000000055 service -highway;0000000054 footway -highway;0000000053 traffic_calming -highway;0000000046 toll_bridge -highway;0000000037 city_entry - -barrier;0000076979 gate -barrier;0000069308 bollard -barrier;0000028131 lift_gate -barrier;0000017332 cycle_barrier -barrier;0000005693 entrance -barrier;0000002885 block -barrier;0000001065 kissing_gate -barrier;0000000828 cattle_grid -barrier;0000000602 stile -barrier;0000000561 turnstile -barrier;0000000512 no -barrier;0000000463 fence -barrier;0000000417 bump_gate -barrier;0000000324 sally_port -barrier;0000000283 yes -barrier;0000000283 hampshire_gate -barrier;0000000236 swing_gate -barrier;0000000203 chain -barrier;0000000181 toll_booth -barrier;0000000180 door -barrier;0000000104 chicane -barrier;0000000096 tree -barrier;0000000087 border_control -barrier;0000000077 log -barrier;0000000076 traffic_crossing_pole -barrier;0000000063 wall -barrier;0000000060 fallen_tree -barrier;0000000052 stone -barrier;0000000048 ditch -barrier;0000000031 spikes - -access;0000001309 yes permissive -access;0000000118 designated official -access;0000000405 destination customers -access;0000000276 agricultural forestry -access;0000008574 private -access;0000002145 no - -foot;0000080681 yes permissive -foot;0000000326 designated official -foot;0000000023 destination -foot;0000000156 private -foot;0000009170 no - -bicycle;0000076717 yes permissive -bicycle;0000000406 designated official -bicycle;0000000018 destination -bicycle;0000000081 dismount -bicycle;0000000051 private -bicycle;0000016121 no - -motorcar;0000005785 yes permissive -motorcar;0000000026 designated official -motorcar;0000000080 destination -motorcar;0000000112 agricultural forestry -motorcar;0000000171 private -motorcar;0000001817 no - -motor_vehicle;0000000066 yes permissive -motor_vehicle;0000000000 designated official -motor_vehicle;0000000030 destination -motor_vehicle;0000000073 agricultural forestry -motor_vehicle;0000000136 private -motor_vehicle;0000000469 no - -motorcycle;0000004515 yes permissive -motorcycle;0000000007 designated official -motorcycle;0000000054 destination -motorcycle;0000000027 agricultural forestry -motorcycle;0000000063 private -motorcycle;0000001637 no - -vehicle;0000000058 yes permissive -vehicle;0000000000 designated -vehicle;0000000081 destination -vehicle;0000000038 agricultural forestry -vehicle;0000000041 private -vehicle;0000000271 no - -crossing;0000032485 traffic_signals -crossing;0000014300 uncontrolled -crossing;0000005086 island -crossing;0000001565 unmarked -crossing;0000001066 no -crossing;0000000333 zebra - -railway;0000034039 level_crossing -railway;0000010175 crossing - -noexit;0000043010 yes - -entrance;0000015094 yes -entrance;0000007079 main -entrance;0000000554 service -entrance;0000000169 emergency -entrance;0000000063 exit -entrance;0000000008 private - -lcn;0000018999 yes - -longdistancecycleway;0000000001 yes diff --git a/brouter-routing-app/src/main/resources/brouter/profiles2/moped.brf b/brouter-routing-app/src/main/resources/brouter/profiles2/moped.brf deleted file mode 100644 index 7343604..0000000 --- a/brouter-routing-app/src/main/resources/brouter/profiles2/moped.brf +++ /dev/null @@ -1,119 +0,0 @@ -# -# Moped-Routing is experimantal !!! -# -# DO NOT USE FOR ACTUAL NAVIGATION -# -# Turn restrictions are missing, leading to wrong routes -# - ----context:global - -assign downhillcost 0 -assign downhillcutoff 0 -assign uphillcost 0 -assign uphillcutoff 0 - ----context:way # following code refers to way-tags - -assign turncost 90 -assign initialcost switch highway=ferry 20000 0 - - -# -# calculate logical car access -# -assign motorverhicleaccess - switch motor_vehicle= - switch vehicle= - switch access= - switch or highway=trunk highway=trunk_link 1 - switch or highway=primary highway=primary_link 1 - switch or highway=secondary highway=secondary_link 1 - switch or highway=tertiary highway=tertiary_link 1 - switch highway=unclassified 1 - switch highway=ferry 1 - switch or highway=residential highway=living_street 1 - switch highway=service 1 - 0 - or access=yes or access=designated access=destination - or vehicle=yes or vehicle=designated vehicle=destination - or motor_vehicle=yes or motor_vehicle=designated motor_vehicle=destination - -assign caraccess - switch motorcar= - motorverhicleaccess - or motorcar=yes or motorcar=designated motorcar=destination - -assign motorcycleaccess - switch motorcycle= - motorverhicleaccess - or motorcycle=yes or motorcycle=designated motorcycle=destination - -assign accesspenalty - switch or caraccess motorcycleaccess - switch motorroad=yes 10000 0 - 10000 - -assign onewaypenalty - switch switch reversedirection=yes - switch oneway= - junction=roundabout - or oneway=yes or oneway=true oneway=1 - oneway=-1 - 10000 - 0.0 - - -assign ispaved or surface=paved or surface=asphalt or surface=concrete surface=paving_stones - -assign costfactor - - add max onewaypenalty accesspenalty - - switch or highway=trunk highway=trunk_link 1.5 - switch or highway=primary highway=primary_link switch maxspeed=30 2.0 switch maxspeed=50 1.5 1.2 - switch or highway=secondary highway=secondary_link 1.4 - switch or highway=tertiary highway=tertiary_link 1.3 - switch highway=unclassified 1.2 - switch highway=ferry 5.67 - switch highway=bridleway 5 - switch or highway=residential highway=living_street 2 - switch highway=service 2 - switch or highway=track or highway=road highway=path - switch tracktype=grade1 5 - switch ispaved 5 - 30 - 10000 - ----context:node # following code refers to node tags - -# -# calculate logical car access to nodes -# -assign motorvehicleaccess - switch motor_vehicle= - switch vehicle= - switch access= - switch barrier=gate 0 - switch barrier=bollard 0 - switch barrier=lift_gate 0 - switch barrier=cycle_barrier 0 - 1 - or access=yes or access=designated access=destination - or vehicle=yes or vehicle=designated vehicle=destination - or motor_vehicle=yes or motor_vehicle=designated motor_vehicle=destination - -assign caraccess - switch motorcar= - motorvehicleaccess - or motorcar=yes or motorcar=designated motorcar=destination - -assign motorcycleaccess - switch motorcycle= - motorvehicleaccess - or motorcycle=yes or motorcycle=designated motorcycle=destination - -assign initialcost - switch or caraccess motorcycleaccess - 0 - 1000000 diff --git a/brouter-routing-app/src/main/resources/brouter/profiles2/safety.brf b/brouter-routing-app/src/main/resources/brouter/profiles2/safety.brf deleted file mode 100644 index e759676..0000000 --- a/brouter-routing-app/src/main/resources/brouter/profiles2/safety.brf +++ /dev/null @@ -1,223 +0,0 @@ -# *** The trekking profile is for slow travel -# *** and avoiding car traffic, but still with -# *** a focus on approaching your destination -# *** efficiently. - ----context:global # following code refers to global config - -# Use the following switches to change behaviour -# (1=yes, 0=no): - -assign consider_elevation 1 # set to 0 to ignore elevation in routing -assign allow_steps 1 # set to 0 to disallow steps -assign allow_ferries 1 # set to 0 to disallow ferries -assign ignore_cycleroutes 0 # set to 1 for better elevation results -assign stick_to_cycleroutes 0 # set to 1 to just follow cycleroutes -assign avoid_unsafe 1 # set to 1 to avoid standard highways - -# the elevation parameters - -assign downhillcost switch consider_elevation 60 0 -assign downhillcutoff 1.5 -assign uphillcost 0 -assign uphillcutoff 1.5 - ----context:way # following code refers to way-tags - -# -# pre-calculate some logical expressions -# -assign is_ldcr and longdistancecycleway=yes not ignore_cycleroutes -assign isbike or bicycle=yes or bicycle=designated lcn=yes -assign ispaved or surface=paved or surface=asphalt or surface=concrete surface=paving_stones -assign isunpaved not or surface= or ispaved or surface=fine_gravel surface=cobblestone -assign probablyGood or ispaved and isbike not isunpaved - - -# -# this is the cost (in Meter) for a 90-degree turn -# The actual cost is calculated as turncost*cos(angle) -# (Suppressing turncost while following longdistance-cycleways -# makes them a little bit more magnetic) -# -assign turncost switch is_ldcr 0 90 - -# -# calculate the initial cost -# this is added to the total cost each time the costfactor -# changed -# -assign initialcost switch highway=ferry 10000 0 - -# -# implicit access here just from the motorroad tag -# (implicit access rules from highway tag handled elsewhere) -# -assign defaultaccess - switch access= - not motorroad=yes - switch or access=private access=no - 0 - 1 - -# -# calculate logical bike access -# -assign bikeaccess - or longdistancecycleway=yes - switch bicycle= - switch vehicle= - defaultaccess - switch or vehicle=private vehicle=no - 0 - 1 - not or bicycle=private or bicycle=no bicycle=dismount - -# -# calculate logical foot access -# -assign footaccess - or bikeaccess - or bicycle=dismount - switch foot= - defaultaccess - not or foot=private foot=no - -# -# if not bike-, but foot-acess, just a moderate penalty, -# otherwise access is forbidden -# -assign accesspenalty - switch bikeaccess - 0 - switch footaccess - 4 - 100000 - -# -# handle one-ways. On primary roads, wrong-oneways should -# be close to forbidden, while on other ways we just add -# 4 to the costfactor (making it at least 5 - you are allowed -# to push your bike) -# -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 cycleway=opposite_track 0 - switch or highway=primary highway=primary_link 50 - switch or highway=secondary highway=secondary_link 30 - switch or highway=tertiary highway=tertiary_link 20 - 4.0 - 0.0 - -# -# calculate the cost-factor, which is the factor -# by which the distance of a way-segment is multiplied -# to calculate the cost of that segment. The costfactor -# must be >=1 and it's supposed to be close to 1 for -# the type of way the routing profile is searching for -# -assign costfactor - - add max onewaypenalty accesspenalty - - # - # steps and ferries are special. Note this is handled - # before the longdistancecycleway-switch, to be able - # to really exlude them be setting cost to infinity - # - switch highway=steps switch allow_steps 40 100000 - switch highway=ferry switch allow_ferries 5.67 100000 - - # - # handle long-distance cycle-routes. - # - switch is_ldcr 1 # always treated as perfect (=1) - add switch stick_to_cycleroutes 0.5 0.05 # everything else somewhat up - - # - # some other highway types - # - switch highway=pedestrian 3 - switch highway=bridleway 5 - switch highway=cycleway 1 - switch or highway=residential highway=living_street switch isunpaved 1.5 1.1 - switch highway=service switch isunpaved 1.6 1.3 - - # - # tracks and track-like ways are rated mainly be tracktype/grade - # But note that if no tracktype is given (mainly for road/path/footway) - # it can be o.k. if there's any other hint for quality - # - switch or highway=track or highway=road or highway=path highway=footway - switch tracktype=grade1 switch probablyGood 1.0 1.3 - switch tracktype=grade2 switch probablyGood 1.1 2.0 - switch tracktype=grade3 switch probablyGood 1.5 3.0 - switch tracktype=grade4 switch probablyGood 2.0 5.0 - switch tracktype=grade5 switch probablyGood 3.0 5.0 - switch probablyGood 1.0 5.0 - - # - # When avoiding unsafe ways, avoid highways without a bike hint - # - add switch and avoid_unsafe not isbike 2 0 - - # - # exclude motorways and proposed roads - # - switch or highway=motorway highway=motorway_link 100000 - switch highway=proposed 100000 - - # - # actuals roads are o.k. if we have a bike hint - # - switch or highway=trunk highway=trunk_link switch isbike 1.5 10 - switch or highway=primary highway=primary_link switch isbike 1.2 3 - switch or highway=secondary highway=secondary_link switch isbike 1.1 1.6 - switch or highway=tertiary highway=tertiary_link switch isbike 1.0 1.4 - switch highway=unclassified switch isbike 1.0 1.3 - - # - # default for any other highway type not handled above - # - 2.0 - - ----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 or longdistancecycleway=yes lcn=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 - switch bikeaccess - 0 - switch footaccess - 100 - 1000000 diff --git a/brouter-routing-app/src/main/resources/brouter/profiles2/shortest.brf b/brouter-routing-app/src/main/resources/brouter/profiles2/shortest.brf deleted file mode 100644 index 000b506..0000000 --- a/brouter-routing-app/src/main/resources/brouter/profiles2/shortest.brf +++ /dev/null @@ -1,89 +0,0 @@ ----context:global # following code refers to global config - -# the elevation parameters - -assign downhillcost 0 -assign downhillcutoff 1.5 -assign uphillcost 0 -assign uphillcutoff 1.5 - ----context:way # following code refers to way-tags - -assign turncost 0 - -assign initialcost switch highway=ferry 10000 0 - -# -# implicit access here just from the motorroad tag -# (implicit access rules from highway tag handled elsewhere) -# -assign defaultaccess - switch access= - not motorroad=yes - switch or access=private access=no - 0 - 1 - -# -# calculate logical bike access -# -assign bikeaccess - or longdistancecycleway=yes - switch bicycle= - switch vehicle= - defaultaccess - switch or vehicle=private vehicle=no - 0 - 1 - not or bicycle=private or bicycle=no bicycle=dismount - -# -# calculate logical foot access -# -assign footaccess - or bikeaccess - or bicycle=dismount - switch foot= - defaultaccess - not or foot=private foot=no - -assign accesspenalty switch or bikeaccess footaccess 0 100000 - -assign costfactor - add accesspenalty - - switch highway=ferry 5.67 - switch or highway=motorway highway=motorway_link 100000 - switch highway=proposed 100000 - 1 - ----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 or longdistancecycleway=yes lcn=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 switch or bikeaccess footaccess 0 1000000 diff --git a/brouter-routing-app/src/main/resources/brouter/profiles2/trekking-ignore-cr.brf b/brouter-routing-app/src/main/resources/brouter/profiles2/trekking-ignore-cr.brf deleted file mode 100644 index 8639f46..0000000 --- a/brouter-routing-app/src/main/resources/brouter/profiles2/trekking-ignore-cr.brf +++ /dev/null @@ -1,223 +0,0 @@ -# *** The trekking profile is for slow travel -# *** and avoiding car traffic, but still with -# *** a focus on approaching your destination -# *** efficiently. - ----context:global # following code refers to global config - -# Use the following switches to change behaviour -# (1=yes, 0=no): - -assign consider_elevation 1 # set to 0 to ignore elevation in routing -assign allow_steps 1 # set to 0 to disallow steps -assign allow_ferries 1 # set to 0 to disallow ferries -assign ignore_cycleroutes 1 # set to 1 for better elevation results -assign stick_to_cycleroutes 0 # set to 1 to just follow cycleroutes -assign avoid_unsafe 0 # set to 1 to avoid standard highways - -# the elevation parameters - -assign downhillcost switch consider_elevation 60 0 -assign downhillcutoff 1.5 -assign uphillcost 0 -assign uphillcutoff 1.5 - ----context:way # following code refers to way-tags - -# -# pre-calculate some logical expressions -# -assign is_ldcr and longdistancecycleway=yes not ignore_cycleroutes -assign isbike or bicycle=yes or bicycle=designated lcn=yes -assign ispaved or surface=paved or surface=asphalt or surface=concrete surface=paving_stones -assign isunpaved not or surface= or ispaved or surface=fine_gravel surface=cobblestone -assign probablyGood or ispaved and isbike not isunpaved - - -# -# this is the cost (in Meter) for a 90-degree turn -# The actual cost is calculated as turncost*cos(angle) -# (Suppressing turncost while following longdistance-cycleways -# makes them a little bit more magnetic) -# -assign turncost switch is_ldcr 0 90 - -# -# calculate the initial cost -# this is added to the total cost each time the costfactor -# changed -# -assign initialcost switch highway=ferry 10000 0 - -# -# implicit access here just from the motorroad tag -# (implicit access rules from highway tag handled elsewhere) -# -assign defaultaccess - switch access= - not motorroad=yes - switch or access=private access=no - 0 - 1 - -# -# calculate logical bike access -# -assign bikeaccess - or longdistancecycleway=yes - switch bicycle= - switch vehicle= - defaultaccess - switch or vehicle=private vehicle=no - 0 - 1 - not or bicycle=private or bicycle=no bicycle=dismount - -# -# calculate logical foot access -# -assign footaccess - or bikeaccess - or bicycle=dismount - switch foot= - defaultaccess - not or foot=private foot=no - -# -# if not bike-, but foot-acess, just a moderate penalty, -# otherwise access is forbidden -# -assign accesspenalty - switch bikeaccess - 0 - switch footaccess - 4 - 100000 - -# -# handle one-ways. On primary roads, wrong-oneways should -# be close to forbidden, while on other ways we just add -# 4 to the costfactor (making it at least 5 - you are allowed -# to push your bike) -# -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 cycleway=opposite_track 0 - switch or highway=primary highway=primary_link 50 - switch or highway=secondary highway=secondary_link 30 - switch or highway=tertiary highway=tertiary_link 20 - 4.0 - 0.0 - -# -# calculate the cost-factor, which is the factor -# by which the distance of a way-segment is multiplied -# to calculate the cost of that segment. The costfactor -# must be >=1 and it's supposed to be close to 1 for -# the type of way the routing profile is searching for -# -assign costfactor - - add max onewaypenalty accesspenalty - - # - # steps and ferries are special. Note this is handled - # before the longdistancecycleway-switch, to be able - # to really exlude them be setting cost to infinity - # - switch highway=steps switch allow_steps 40 100000 - switch highway=ferry switch allow_ferries 5.67 100000 - - # - # handle long-distance cycle-routes. - # - switch is_ldcr 1 # always treated as perfect (=1) - add switch stick_to_cycleroutes 0.5 0.05 # everything else somewhat up - - # - # some other highway types - # - switch highway=pedestrian 3 - switch highway=bridleway 5 - switch highway=cycleway 1 - switch or highway=residential highway=living_street switch isunpaved 1.5 1.1 - switch highway=service switch isunpaved 1.6 1.3 - - # - # tracks and track-like ways are rated mainly be tracktype/grade - # But note that if no tracktype is given (mainly for road/path/footway) - # it can be o.k. if there's any other hint for quality - # - switch or highway=track or highway=road or highway=path highway=footway - switch tracktype=grade1 switch probablyGood 1.0 1.3 - switch tracktype=grade2 switch probablyGood 1.1 2.0 - switch tracktype=grade3 switch probablyGood 1.5 3.0 - switch tracktype=grade4 switch probablyGood 2.0 5.0 - switch tracktype=grade5 switch probablyGood 3.0 5.0 - switch probablyGood 1.0 5.0 - - # - # When avoiding unsafe ways, avoid highways without a bike hint - # - add switch and avoid_unsafe not isbike 2 0 - - # - # exclude motorways and proposed roads - # - switch or highway=motorway highway=motorway_link 100000 - switch highway=proposed 100000 - - # - # actuals roads are o.k. if we have a bike hint - # - switch or highway=trunk highway=trunk_link switch isbike 1.5 10 - switch or highway=primary highway=primary_link switch isbike 1.2 3 - switch or highway=secondary highway=secondary_link switch isbike 1.1 1.6 - switch or highway=tertiary highway=tertiary_link switch isbike 1.0 1.4 - switch highway=unclassified switch isbike 1.0 1.3 - - # - # default for any other highway type not handled above - # - 2.0 - - ----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 or longdistancecycleway=yes lcn=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 - switch bikeaccess - 0 - switch footaccess - 100 - 1000000 diff --git a/brouter-routing-app/src/main/resources/brouter/profiles2/trekking-noferries.brf b/brouter-routing-app/src/main/resources/brouter/profiles2/trekking-noferries.brf deleted file mode 100644 index ea1dba9..0000000 --- a/brouter-routing-app/src/main/resources/brouter/profiles2/trekking-noferries.brf +++ /dev/null @@ -1,223 +0,0 @@ -# *** The trekking profile is for slow travel -# *** and avoiding car traffic, but still with -# *** a focus on approaching your destination -# *** efficiently. - ----context:global # following code refers to global config - -# Use the following switches to change behaviour -# (1=yes, 0=no): - -assign consider_elevation 1 # set to 0 to ignore elevation in routing -assign allow_steps 1 # set to 0 to disallow steps -assign allow_ferries 0 # set to 0 to disallow ferries -assign ignore_cycleroutes 0 # set to 1 for better elevation results -assign stick_to_cycleroutes 0 # set to 1 to just follow cycleroutes -assign avoid_unsafe 0 # set to 1 to avoid standard highways - -# the elevation parameters - -assign downhillcost switch consider_elevation 60 0 -assign downhillcutoff 1.5 -assign uphillcost 0 -assign uphillcutoff 1.5 - ----context:way # following code refers to way-tags - -# -# pre-calculate some logical expressions -# -assign is_ldcr and longdistancecycleway=yes not ignore_cycleroutes -assign isbike or bicycle=yes or bicycle=designated lcn=yes -assign ispaved or surface=paved or surface=asphalt or surface=concrete surface=paving_stones -assign isunpaved not or surface= or ispaved or surface=fine_gravel surface=cobblestone -assign probablyGood or ispaved and isbike not isunpaved - - -# -# this is the cost (in Meter) for a 90-degree turn -# The actual cost is calculated as turncost*cos(angle) -# (Suppressing turncost while following longdistance-cycleways -# makes them a little bit more magnetic) -# -assign turncost switch is_ldcr 0 90 - -# -# calculate the initial cost -# this is added to the total cost each time the costfactor -# changed -# -assign initialcost switch highway=ferry 10000 0 - -# -# implicit access here just from the motorroad tag -# (implicit access rules from highway tag handled elsewhere) -# -assign defaultaccess - switch access= - not motorroad=yes - switch or access=private access=no - 0 - 1 - -# -# calculate logical bike access -# -assign bikeaccess - or longdistancecycleway=yes - switch bicycle= - switch vehicle= - defaultaccess - switch or vehicle=private vehicle=no - 0 - 1 - not or bicycle=private or bicycle=no bicycle=dismount - -# -# calculate logical foot access -# -assign footaccess - or bikeaccess - or bicycle=dismount - switch foot= - defaultaccess - not or foot=private foot=no - -# -# if not bike-, but foot-acess, just a moderate penalty, -# otherwise access is forbidden -# -assign accesspenalty - switch bikeaccess - 0 - switch footaccess - 4 - 100000 - -# -# handle one-ways. On primary roads, wrong-oneways should -# be close to forbidden, while on other ways we just add -# 4 to the costfactor (making it at least 5 - you are allowed -# to push your bike) -# -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 cycleway=opposite_track 0 - switch or highway=primary highway=primary_link 50 - switch or highway=secondary highway=secondary_link 30 - switch or highway=tertiary highway=tertiary_link 20 - 4.0 - 0.0 - -# -# calculate the cost-factor, which is the factor -# by which the distance of a way-segment is multiplied -# to calculate the cost of that segment. The costfactor -# must be >=1 and it's supposed to be close to 1 for -# the type of way the routing profile is searching for -# -assign costfactor - - add max onewaypenalty accesspenalty - - # - # steps and ferries are special. Note this is handled - # before the longdistancecycleway-switch, to be able - # to really exlude them be setting cost to infinity - # - switch highway=steps switch allow_steps 40 100000 - switch highway=ferry switch allow_ferries 5.67 100000 - - # - # handle long-distance cycle-routes. - # - switch is_ldcr 1 # always treated as perfect (=1) - add switch stick_to_cycleroutes 0.5 0.05 # everything else somewhat up - - # - # some other highway types - # - switch highway=pedestrian 3 - switch highway=bridleway 5 - switch highway=cycleway 1 - switch or highway=residential highway=living_street switch isunpaved 1.5 1.1 - switch highway=service switch isunpaved 1.6 1.3 - - # - # tracks and track-like ways are rated mainly be tracktype/grade - # But note that if no tracktype is given (mainly for road/path/footway) - # it can be o.k. if there's any other hint for quality - # - switch or highway=track or highway=road or highway=path highway=footway - switch tracktype=grade1 switch probablyGood 1.0 1.3 - switch tracktype=grade2 switch probablyGood 1.1 2.0 - switch tracktype=grade3 switch probablyGood 1.5 3.0 - switch tracktype=grade4 switch probablyGood 2.0 5.0 - switch tracktype=grade5 switch probablyGood 3.0 5.0 - switch probablyGood 1.0 5.0 - - # - # When avoiding unsafe ways, avoid highways without a bike hint - # - add switch and avoid_unsafe not isbike 2 0 - - # - # exclude motorways and proposed roads - # - switch or highway=motorway highway=motorway_link 100000 - switch highway=proposed 100000 - - # - # actuals roads are o.k. if we have a bike hint - # - switch or highway=trunk highway=trunk_link switch isbike 1.5 10 - switch or highway=primary highway=primary_link switch isbike 1.2 3 - switch or highway=secondary highway=secondary_link switch isbike 1.1 1.6 - switch or highway=tertiary highway=tertiary_link switch isbike 1.0 1.4 - switch highway=unclassified switch isbike 1.0 1.3 - - # - # default for any other highway type not handled above - # - 2.0 - - ----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 or longdistancecycleway=yes lcn=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 - switch bikeaccess - 0 - switch footaccess - 100 - 1000000 diff --git a/brouter-routing-app/src/main/resources/brouter/profiles2/trekking-nosteps.brf b/brouter-routing-app/src/main/resources/brouter/profiles2/trekking-nosteps.brf deleted file mode 100644 index 1a70dcd..0000000 --- a/brouter-routing-app/src/main/resources/brouter/profiles2/trekking-nosteps.brf +++ /dev/null @@ -1,223 +0,0 @@ -# *** The trekking profile is for slow travel -# *** and avoiding car traffic, but still with -# *** a focus on approaching your destination -# *** efficiently. - ----context:global # following code refers to global config - -# Use the following switches to change behaviour -# (1=yes, 0=no): - -assign consider_elevation 1 # set to 0 to ignore elevation in routing -assign allow_steps 0 # set to 0 to disallow steps -assign allow_ferries 1 # set to 0 to disallow ferries -assign ignore_cycleroutes 0 # set to 1 for better elevation results -assign stick_to_cycleroutes 0 # set to 1 to just follow cycleroutes -assign avoid_unsafe 0 # set to 1 to avoid standard highways - -# the elevation parameters - -assign downhillcost switch consider_elevation 60 0 -assign downhillcutoff 1.5 -assign uphillcost 0 -assign uphillcutoff 1.5 - ----context:way # following code refers to way-tags - -# -# pre-calculate some logical expressions -# -assign is_ldcr and longdistancecycleway=yes not ignore_cycleroutes -assign isbike or bicycle=yes or bicycle=designated lcn=yes -assign ispaved or surface=paved or surface=asphalt or surface=concrete surface=paving_stones -assign isunpaved not or surface= or ispaved or surface=fine_gravel surface=cobblestone -assign probablyGood or ispaved and isbike not isunpaved - - -# -# this is the cost (in Meter) for a 90-degree turn -# The actual cost is calculated as turncost*cos(angle) -# (Suppressing turncost while following longdistance-cycleways -# makes them a little bit more magnetic) -# -assign turncost switch is_ldcr 0 90 - -# -# calculate the initial cost -# this is added to the total cost each time the costfactor -# changed -# -assign initialcost switch highway=ferry 10000 0 - -# -# implicit access here just from the motorroad tag -# (implicit access rules from highway tag handled elsewhere) -# -assign defaultaccess - switch access= - not motorroad=yes - switch or access=private access=no - 0 - 1 - -# -# calculate logical bike access -# -assign bikeaccess - or longdistancecycleway=yes - switch bicycle= - switch vehicle= - defaultaccess - switch or vehicle=private vehicle=no - 0 - 1 - not or bicycle=private or bicycle=no bicycle=dismount - -# -# calculate logical foot access -# -assign footaccess - or bikeaccess - or bicycle=dismount - switch foot= - defaultaccess - not or foot=private foot=no - -# -# if not bike-, but foot-acess, just a moderate penalty, -# otherwise access is forbidden -# -assign accesspenalty - switch bikeaccess - 0 - switch footaccess - 4 - 100000 - -# -# handle one-ways. On primary roads, wrong-oneways should -# be close to forbidden, while on other ways we just add -# 4 to the costfactor (making it at least 5 - you are allowed -# to push your bike) -# -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 cycleway=opposite_track 0 - switch or highway=primary highway=primary_link 50 - switch or highway=secondary highway=secondary_link 30 - switch or highway=tertiary highway=tertiary_link 20 - 4.0 - 0.0 - -# -# calculate the cost-factor, which is the factor -# by which the distance of a way-segment is multiplied -# to calculate the cost of that segment. The costfactor -# must be >=1 and it's supposed to be close to 1 for -# the type of way the routing profile is searching for -# -assign costfactor - - add max onewaypenalty accesspenalty - - # - # steps and ferries are special. Note this is handled - # before the longdistancecycleway-switch, to be able - # to really exlude them be setting cost to infinity - # - switch highway=steps switch allow_steps 40 100000 - switch highway=ferry switch allow_ferries 5.67 100000 - - # - # handle long-distance cycle-routes. - # - switch is_ldcr 1 # always treated as perfect (=1) - add switch stick_to_cycleroutes 0.5 0.05 # everything else somewhat up - - # - # some other highway types - # - switch highway=pedestrian 3 - switch highway=bridleway 5 - switch highway=cycleway 1 - switch or highway=residential highway=living_street switch isunpaved 1.5 1.1 - switch highway=service switch isunpaved 1.6 1.3 - - # - # tracks and track-like ways are rated mainly be tracktype/grade - # But note that if no tracktype is given (mainly for road/path/footway) - # it can be o.k. if there's any other hint for quality - # - switch or highway=track or highway=road or highway=path highway=footway - switch tracktype=grade1 switch probablyGood 1.0 1.3 - switch tracktype=grade2 switch probablyGood 1.1 2.0 - switch tracktype=grade3 switch probablyGood 1.5 3.0 - switch tracktype=grade4 switch probablyGood 2.0 5.0 - switch tracktype=grade5 switch probablyGood 3.0 5.0 - switch probablyGood 1.0 5.0 - - # - # When avoiding unsafe ways, avoid highways without a bike hint - # - add switch and avoid_unsafe not isbike 2 0 - - # - # exclude motorways and proposed roads - # - switch or highway=motorway highway=motorway_link 100000 - switch highway=proposed 100000 - - # - # actuals roads are o.k. if we have a bike hint - # - switch or highway=trunk highway=trunk_link switch isbike 1.5 10 - switch or highway=primary highway=primary_link switch isbike 1.2 3 - switch or highway=secondary highway=secondary_link switch isbike 1.1 1.6 - switch or highway=tertiary highway=tertiary_link switch isbike 1.0 1.4 - switch highway=unclassified switch isbike 1.0 1.3 - - # - # default for any other highway type not handled above - # - 2.0 - - ----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 or longdistancecycleway=yes lcn=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 - switch bikeaccess - 0 - switch footaccess - 100 - 1000000 diff --git a/brouter-routing-app/src/main/resources/brouter/profiles2/trekking-steep.brf b/brouter-routing-app/src/main/resources/brouter/profiles2/trekking-steep.brf deleted file mode 100644 index 822b1ec..0000000 --- a/brouter-routing-app/src/main/resources/brouter/profiles2/trekking-steep.brf +++ /dev/null @@ -1,223 +0,0 @@ -# *** The trekking profile is for slow travel -# *** and avoiding car traffic, but still with -# *** a focus on approaching your destination -# *** efficiently. - ----context:global # following code refers to global config - -# Use the following switches to change behaviour -# (1=yes, 0=no): - -assign consider_elevation 0 # set to 0 to ignore elevation in routing -assign allow_steps 1 # set to 0 to disallow steps -assign allow_ferries 1 # set to 0 to disallow ferries -assign ignore_cycleroutes 0 # set to 1 for better elevation results -assign stick_to_cycleroutes 0 # set to 1 to just follow cycleroutes -assign avoid_unsafe 0 # set to 1 to avoid standard highways - -# the elevation parameters - -assign downhillcost switch consider_elevation 60 0 -assign downhillcutoff 1.5 -assign uphillcost 0 -assign uphillcutoff 1.5 - ----context:way # following code refers to way-tags - -# -# pre-calculate some logical expressions -# -assign is_ldcr and longdistancecycleway=yes not ignore_cycleroutes -assign isbike or bicycle=yes or bicycle=designated lcn=yes -assign ispaved or surface=paved or surface=asphalt or surface=concrete surface=paving_stones -assign isunpaved not or surface= or ispaved or surface=fine_gravel surface=cobblestone -assign probablyGood or ispaved and isbike not isunpaved - - -# -# this is the cost (in Meter) for a 90-degree turn -# The actual cost is calculated as turncost*cos(angle) -# (Suppressing turncost while following longdistance-cycleways -# makes them a little bit more magnetic) -# -assign turncost switch is_ldcr 0 90 - -# -# calculate the initial cost -# this is added to the total cost each time the costfactor -# changed -# -assign initialcost switch highway=ferry 10000 0 - -# -# implicit access here just from the motorroad tag -# (implicit access rules from highway tag handled elsewhere) -# -assign defaultaccess - switch access= - not motorroad=yes - switch or access=private access=no - 0 - 1 - -# -# calculate logical bike access -# -assign bikeaccess - or longdistancecycleway=yes - switch bicycle= - switch vehicle= - defaultaccess - switch or vehicle=private vehicle=no - 0 - 1 - not or bicycle=private or bicycle=no bicycle=dismount - -# -# calculate logical foot access -# -assign footaccess - or bikeaccess - or bicycle=dismount - switch foot= - defaultaccess - not or foot=private foot=no - -# -# if not bike-, but foot-acess, just a moderate penalty, -# otherwise access is forbidden -# -assign accesspenalty - switch bikeaccess - 0 - switch footaccess - 4 - 100000 - -# -# handle one-ways. On primary roads, wrong-oneways should -# be close to forbidden, while on other ways we just add -# 4 to the costfactor (making it at least 5 - you are allowed -# to push your bike) -# -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 cycleway=opposite_track 0 - switch or highway=primary highway=primary_link 50 - switch or highway=secondary highway=secondary_link 30 - switch or highway=tertiary highway=tertiary_link 20 - 4.0 - 0.0 - -# -# calculate the cost-factor, which is the factor -# by which the distance of a way-segment is multiplied -# to calculate the cost of that segment. The costfactor -# must be >=1 and it's supposed to be close to 1 for -# the type of way the routing profile is searching for -# -assign costfactor - - add max onewaypenalty accesspenalty - - # - # steps and ferries are special. Note this is handled - # before the longdistancecycleway-switch, to be able - # to really exlude them be setting cost to infinity - # - switch highway=steps switch allow_steps 40 100000 - switch highway=ferry switch allow_ferries 5.67 100000 - - # - # handle long-distance cycle-routes. - # - switch is_ldcr 1 # always treated as perfect (=1) - add switch stick_to_cycleroutes 0.5 0.05 # everything else somewhat up - - # - # some other highway types - # - switch highway=pedestrian 3 - switch highway=bridleway 5 - switch highway=cycleway 1 - switch or highway=residential highway=living_street switch isunpaved 1.5 1.1 - switch highway=service switch isunpaved 1.6 1.3 - - # - # tracks and track-like ways are rated mainly be tracktype/grade - # But note that if no tracktype is given (mainly for road/path/footway) - # it can be o.k. if there's any other hint for quality - # - switch or highway=track or highway=road or highway=path highway=footway - switch tracktype=grade1 switch probablyGood 1.0 1.3 - switch tracktype=grade2 switch probablyGood 1.1 2.0 - switch tracktype=grade3 switch probablyGood 1.5 3.0 - switch tracktype=grade4 switch probablyGood 2.0 5.0 - switch tracktype=grade5 switch probablyGood 3.0 5.0 - switch probablyGood 1.0 5.0 - - # - # When avoiding unsafe ways, avoid highways without a bike hint - # - add switch and avoid_unsafe not isbike 2 0 - - # - # exclude motorways and proposed roads - # - switch or highway=motorway highway=motorway_link 100000 - switch highway=proposed 100000 - - # - # actuals roads are o.k. if we have a bike hint - # - switch or highway=trunk highway=trunk_link switch isbike 1.5 10 - switch or highway=primary highway=primary_link switch isbike 1.2 3 - switch or highway=secondary highway=secondary_link switch isbike 1.1 1.6 - switch or highway=tertiary highway=tertiary_link switch isbike 1.0 1.4 - switch highway=unclassified switch isbike 1.0 1.3 - - # - # default for any other highway type not handled above - # - 2.0 - - ----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 or longdistancecycleway=yes lcn=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 - switch bikeaccess - 0 - switch footaccess - 100 - 1000000 diff --git a/brouter-routing-app/src/main/resources/brouter/profiles2/trekking.brf b/brouter-routing-app/src/main/resources/brouter/profiles2/trekking.brf deleted file mode 100644 index ec2940e..0000000 --- a/brouter-routing-app/src/main/resources/brouter/profiles2/trekking.brf +++ /dev/null @@ -1,223 +0,0 @@ -# *** The trekking profile is for slow travel -# *** and avoiding car traffic, but still with -# *** a focus on approaching your destination -# *** efficiently. - ----context:global # following code refers to global config - -# Use the following switches to change behaviour -# (1=yes, 0=no): - -assign consider_elevation 1 # set to 0 to ignore elevation in routing -assign allow_steps 1 # set to 0 to disallow steps -assign allow_ferries 1 # set to 0 to disallow ferries -assign ignore_cycleroutes 0 # set to 1 for better elevation results -assign stick_to_cycleroutes 0 # set to 1 to just follow cycleroutes -assign avoid_unsafe 0 # set to 1 to avoid standard highways - -# the elevation parameters - -assign downhillcost switch consider_elevation 60 0 -assign downhillcutoff 1.5 -assign uphillcost 0 -assign uphillcutoff 1.5 - ----context:way # following code refers to way-tags - -# -# pre-calculate some logical expressions -# -assign is_ldcr and longdistancecycleway=yes not ignore_cycleroutes -assign isbike or bicycle=yes or bicycle=designated lcn=yes -assign ispaved or surface=paved or surface=asphalt or surface=concrete surface=paving_stones -assign isunpaved not or surface= or ispaved or surface=fine_gravel surface=cobblestone -assign probablyGood or ispaved and isbike not isunpaved - - -# -# this is the cost (in Meter) for a 90-degree turn -# The actual cost is calculated as turncost*cos(angle) -# (Suppressing turncost while following longdistance-cycleways -# makes them a little bit more magnetic) -# -assign turncost switch is_ldcr 0 90 - -# -# calculate the initial cost -# this is added to the total cost each time the costfactor -# changed -# -assign initialcost switch highway=ferry 10000 0 - -# -# implicit access here just from the motorroad tag -# (implicit access rules from highway tag handled elsewhere) -# -assign defaultaccess - switch access= - not motorroad=yes - switch or access=private access=no - 0 - 1 - -# -# calculate logical bike access -# -assign bikeaccess - or longdistancecycleway=yes - switch bicycle= - switch vehicle= - defaultaccess - switch or vehicle=private vehicle=no - 0 - 1 - not or bicycle=private or bicycle=no bicycle=dismount - -# -# calculate logical foot access -# -assign footaccess - or bikeaccess - or bicycle=dismount - switch foot= - defaultaccess - not or foot=private foot=no - -# -# if not bike-, but foot-acess, just a moderate penalty, -# otherwise access is forbidden -# -assign accesspenalty - switch bikeaccess - 0 - switch footaccess - 4 - 100000 - -# -# handle one-ways. On primary roads, wrong-oneways should -# be close to forbidden, while on other ways we just add -# 4 to the costfactor (making it at least 5 - you are allowed -# to push your bike) -# -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 cycleway=opposite_track 0 - switch or highway=primary highway=primary_link 50 - switch or highway=secondary highway=secondary_link 30 - switch or highway=tertiary highway=tertiary_link 20 - 4.0 - 0.0 - -# -# calculate the cost-factor, which is the factor -# by which the distance of a way-segment is multiplied -# to calculate the cost of that segment. The costfactor -# must be >=1 and it's supposed to be close to 1 for -# the type of way the routing profile is searching for -# -assign costfactor - - add max onewaypenalty accesspenalty - - # - # steps and ferries are special. Note this is handled - # before the longdistancecycleway-switch, to be able - # to really exlude them be setting cost to infinity - # - switch highway=steps switch allow_steps 40 100000 - switch highway=ferry switch allow_ferries 5.67 100000 - - # - # handle long-distance cycle-routes. - # - switch is_ldcr 1 # always treated as perfect (=1) - add switch stick_to_cycleroutes 0.5 0.05 # everything else somewhat up - - # - # some other highway types - # - switch highway=pedestrian 3 - switch highway=bridleway 5 - switch highway=cycleway 1 - switch or highway=residential highway=living_street switch isunpaved 1.5 1.1 - switch highway=service switch isunpaved 1.6 1.3 - - # - # tracks and track-like ways are rated mainly be tracktype/grade - # But note that if no tracktype is given (mainly for road/path/footway) - # it can be o.k. if there's any other hint for quality - # - switch or highway=track or highway=road or highway=path highway=footway - switch tracktype=grade1 switch probablyGood 1.0 1.3 - switch tracktype=grade2 switch probablyGood 1.1 2.0 - switch tracktype=grade3 switch probablyGood 1.5 3.0 - switch tracktype=grade4 switch probablyGood 2.0 5.0 - switch tracktype=grade5 switch probablyGood 3.0 5.0 - switch probablyGood 1.0 5.0 - - # - # When avoiding unsafe ways, avoid highways without a bike hint - # - add switch and avoid_unsafe not isbike 2 0 - - # - # exclude motorways and proposed roads - # - switch or highway=motorway highway=motorway_link 100000 - switch highway=proposed 100000 - - # - # actuals roads are o.k. if we have a bike hint - # - switch or highway=trunk highway=trunk_link switch isbike 1.5 10 - switch or highway=primary highway=primary_link switch isbike 1.2 3 - switch or highway=secondary highway=secondary_link switch isbike 1.1 1.6 - switch or highway=tertiary highway=tertiary_link switch isbike 1.0 1.4 - switch highway=unclassified switch isbike 1.0 1.3 - - # - # default for any other highway type not handled above - # - 2.0 - - ----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 or longdistancecycleway=yes lcn=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 - switch bikeaccess - 0 - switch footaccess - 100 - 1000000