diff --git a/misc/profiles2/car-vario.brf b/misc/profiles2/car-vario.brf index ce88b8c5..7497ec13 100644 --- a/misc/profiles2/car-vario.brf +++ b/misc/profiles2/car-vario.brf @@ -96,7 +96,7 @@ assign initialcost = assign accessspeedlimit = if caraccess then 999 else 0 -assign isbadoneway = if reversedirection=yes then ( if oneway= then junction=roundabout else oneway=yes|true|1 ) else oneway=-1 +assign isbadoneway = if reversedirection=yes then ( if oneway= then junction=roundabout else oneway=yes|1 ) else oneway=-1 assign onewayspeedlimit = if isbadoneway then 0 else 999 assign islinktype = highway=motorway_link|trunk_link|primary_link|secondary_link|tertiary_link @@ -221,7 +221,7 @@ assign priorityclassifier = # some more classifying bits used for voice hint generation... assign isgoodoneway = if reversedirection=yes then oneway=-1 - else if oneway= then junction=roundabout else oneway=yes|true|1 + else if oneway= then junction=roundabout else oneway=yes|1 assign isroundabout = junction=roundabout assign isgoodforcars = if greater priorityclassifier 6 then true else if or isresidentialorliving highway=service then true diff --git a/misc/profiles2/fastbike-verylowtraffic.brf b/misc/profiles2/fastbike-verylowtraffic.brf index 3fb7f0dc..d3a2f503 100644 --- a/misc/profiles2/fastbike-verylowtraffic.brf +++ b/misc/profiles2/fastbike-verylowtraffic.brf @@ -61,7 +61,7 @@ assign any_cycleway or cycleway=track|lane|shared_lane|shared cycleway_right # as soon it is supported in lookup, add ==> bicycle_road=yes in any_cycleway # in relation with "route=bicycle" ? -assign any_cycleroute or route_bicycle_icn=yes or route_bicycle_ncn=yes or route_bicycle_rcn=yes route_bicycle_lcn=yes +assign any_cycleroute or network=icn or network=ncn or network=rcn network=lcn assign nodeaccessgranted or any_cycleroute lcn=yes @@ -132,7 +132,7 @@ assign badoneway = if reversedirection=yes then if oneway:bicycle=yes then true else if oneway= then junction=roundabout - else oneway=yes|true|1 + else oneway=yes|1 else oneway=-1 assign onewaypenalty = @@ -378,7 +378,7 @@ assign priorityclassifier = assign isbadoneway = not equal onewaypenalty 0 assign isgoodoneway = if reversedirection=yes then oneway=-1 - else if oneway= then junction=roundabout else oneway=yes|true|1 + else if oneway= then junction=roundabout else oneway=yes|1 assign isroundabout = junction=roundabout assign islinktype = highway=motorway_link|trunk_link|primary_link|secondary_link|tertiary_link assign isgoodforcars = if greater priorityclassifier 6 then true diff --git a/misc/profiles2/fastbike.brf b/misc/profiles2/fastbike.brf index 36455cf7..00430338 100644 --- a/misc/profiles2/fastbike.brf +++ b/misc/profiles2/fastbike.brf @@ -54,7 +54,7 @@ assign turnInstructionRoundabouts = true # %turnInstructionRoundabouts% | Set ---context:way # following code refers to way-tags -assign any_cycleroute or route_bicycle_icn=yes or route_bicycle_ncn=yes or route_bicycle_rcn=yes route_bicycle_lcn=yes +assign any_cycleroute or network=icn or network=ncn or network=rcn network=lcn assign nodeaccessgranted or any_cycleroute lcn=yes assign ispaved or surface=paved or surface=asphalt or surface=concrete or surface=paving_stones surface=sett @@ -127,7 +127,7 @@ assign badoneway = if reversedirection=yes then if oneway:bicycle=yes then true else if oneway= then junction=roundabout - else oneway=yes|true|1 + else oneway=yes|1 else oneway=-1 assign onewaypenalty = @@ -244,7 +244,7 @@ assign priorityclassifier = assign isbadoneway = not equal onewaypenalty 0 assign isgoodoneway = if reversedirection=yes then oneway=-1 - else if oneway= then junction=roundabout else oneway=yes|true|1 + else if oneway= then junction=roundabout else oneway=yes|1 assign isroundabout = junction=roundabout assign islinktype = highway=motorway_link|trunk_link|primary_link|secondary_link|tertiary_link assign isgoodforcars = if greater priorityclassifier 6 then true diff --git a/misc/profiles2/hiking-beta.brf b/misc/profiles2/hiking-beta.brf index 3e0869cf..dd02709f 100644 --- a/misc/profiles2/hiking-beta.brf +++ b/misc/profiles2/hiking-beta.brf @@ -9,6 +9,8 @@ ---context:global +assign avoidPeaks 1 + assign consider_elevation 1 # 0 as default, otherwise less interesting flat roads are chosen. assign shortest_way 0 # 0 as default @@ -84,18 +86,15 @@ assign SAC_K2_6 add ( multiply ( add SAC_K2_5 1.0 ) SAC_K20 ) -1.0 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 any_hiking_route or route=hiking or route_hiking_iwn=yes - or route_hiking_nwn=yes or route_hiking_rwn=yes - or route_hiking_lwn=yes or route_hiking_=yes - or route_foot_=yes or route_foot_nwn=yes - or route_foot_rwn=yes route_foot_lwn=yes +assign any_hiking_route or route=hiking or network=iwn + or network=nwn or network=rwn network=lwn assign any_cycleroute = - if route_bicycle_icn=yes then true - else if route_bicycle_ncn=yes then true - else if route_bicycle_rcn=yes then true - else if route_bicycle_lcn=yes then true - else false + if network=icn then true + else if network=ncn then true + else if network=rcn then true + else if network=lcn then true + else false assign is_ldhr and any_hiking_route hr_preferred assign nodeaccessgranted any_hiking_route @@ -158,7 +157,7 @@ else if or sac_scale=demanding_alpine_hiking mtb:scale=6 then 5 else if or sac_scale=alpine_hiking mtb:scale=5 then 4 else if or sac_scale=demanding_mountain_hiking mtb:scale=4 then 3 else if or sac_scale=mountain_hiking mtb:scale=3|2+ then 2 -else if or sac_scale=hiking|T1-hiking|yes mtb:scale=2|1+|2- then 1 +else if or sac_scale=hiking|yes mtb:scale=2|1+|2- then 1 else 0 assign SAC_scale_access # if SAC_scale_limit < SAC then true else false diff --git a/misc/profiles2/moped.brf b/misc/profiles2/moped.brf index 82a7ed51..16354f40 100644 --- a/misc/profiles2/moped.brf +++ b/misc/profiles2/moped.brf @@ -71,7 +71,7 @@ assign onewaypenalty switch switch reversedirection=yes switch oneway= junction=roundabout - or oneway=yes or oneway=true oneway=1 + or oneway=yes oneway=1 oneway=-1 10000 0.0 @@ -129,7 +129,7 @@ assign priorityclassifier = assign isbadoneway = not equal onewaypenalty 0 assign isgoodoneway = if reversedirection=yes then oneway=-1 - else if oneway= then junction=roundabout else oneway=yes|true|1 + else if oneway= then junction=roundabout else oneway=yes|1 assign isroundabout = junction=roundabout assign isgoodforcars = if greater priorityclassifier 6 then true else if ( or isresidentialorliving highway=service ) then true diff --git a/misc/profiles2/vm-forum-liegerad-schnell.brf b/misc/profiles2/vm-forum-liegerad-schnell.brf index 91efd23e..5db596fb 100644 --- a/misc/profiles2/vm-forum-liegerad-schnell.brf +++ b/misc/profiles2/vm-forum-liegerad-schnell.brf @@ -60,7 +60,7 @@ assign elevationbufferreduce 1 # im Bereich zwischen elevationpenaltybuffer und # Parameter für die Wege #zusätzliche Kosten in Meter für jeden Streckenabschnitt -assign any_cycleroute or route_bicycle_icn=yes or route_bicycle_ncn=yes or route_bicycle_rcn=yes route_bicycle_lcn=yes +assign any_cycleroute or network=icn or network=ncn or network=rcn network=lcn assign nodeaccessgranted or any_cycleroute lcn=yes assign cycleway @@ -92,7 +92,7 @@ assign initialcost assign oneway switch oneway= junction=roundabout - or oneway=yes or oneway=true oneway=1 + or oneway=yes oneway=1 assign onewaypenalty switch switch reversedirection=yes oneway oneway=-1 @@ -398,7 +398,7 @@ assign priorityclassifier = assign isbadoneway = not equal onewaypenalty 0 assign isgoodoneway = if reversedirection=yes then oneway=-1 - else if oneway= then junction=roundabout else oneway=yes|true|1 + else if oneway= then junction=roundabout else oneway=yes|1 assign isroundabout = junction=roundabout assign islinktype = highway=motorway_link|trunk_link|primary_link|secondary_link|tertiary_link assign isgoodforcars = if greater priorityclassifier 6 then true diff --git a/misc/profiles2/vm-forum-velomobil-schnell.brf b/misc/profiles2/vm-forum-velomobil-schnell.brf index 953a3ad3..830ef536 100644 --- a/misc/profiles2/vm-forum-velomobil-schnell.brf +++ b/misc/profiles2/vm-forum-velomobil-schnell.brf @@ -60,7 +60,7 @@ assign elevationbufferreduce 1 # im Bereich zwischen elevationpenaltybuffer und # Parameter für die Wege #zusätzliche Kosten in Meter für jeden Streckenabschnitt -assign any_cycleroute or route_bicycle_icn=yes or route_bicycle_ncn=yes or route_bicycle_rcn=yes route_bicycle_lcn=yes +assign any_cycleroute or network=icn or network=ncn or network=rcn network=lcn assign nodeaccessgranted or any_cycleroute lcn=yes assign cycleway @@ -92,7 +92,7 @@ assign initialcost assign oneway switch oneway= junction=roundabout - or oneway=yes or oneway=true oneway=1 + or oneway=yes oneway=1 assign onewaypenalty switch switch reversedirection=yes oneway oneway=-1 @@ -398,7 +398,7 @@ assign priorityclassifier = assign isbadoneway = not equal onewaypenalty 0 assign isgoodoneway = if reversedirection=yes then oneway=-1 - else if oneway= then junction=roundabout else oneway=yes|true|1 + else if oneway= then junction=roundabout else oneway=yes|1 assign isroundabout = junction=roundabout assign islinktype = highway=motorway_link|trunk_link|primary_link|secondary_link|tertiary_link assign isgoodforcars = if greater priorityclassifier 6 then true