From 7da925a21276f3ec9ede18fc16ece6df964279de Mon Sep 17 00:00:00 2001 From: Marcus Jaschen Date: Sat, 13 Jun 2020 16:43:39 +0200 Subject: [PATCH 1/2] add `dummyUsage` to certain profiles If BRouter calculates a route with a cycling or hiking profile, the `smoothness` tag is included in the response. That enables a statistical analysis for the calculated route (distribution of smoothness tags by distance). See the analysis sidebar at https://brouter.m11n.de/ for an example. --- misc/profiles2/fastbike-verylowtraffic.brf | 2 ++ misc/profiles2/fastbike.brf | 2 ++ misc/profiles2/hiking-beta.brf | 5 ++++- misc/profiles2/moped.brf | 2 ++ misc/profiles2/shortest.brf | 3 +++ misc/profiles2/trekking.brf | 2 ++ misc/profiles2/vm-forum-liegerad-schnell.brf | 3 ++- misc/profiles2/vm-forum-velomobil-schnell.brf | 3 ++- 8 files changed, 19 insertions(+), 3 deletions(-) diff --git a/misc/profiles2/fastbike-verylowtraffic.brf b/misc/profiles2/fastbike-verylowtraffic.brf index ee1bdc0b0..b13979c99 100644 --- a/misc/profiles2/fastbike-verylowtraffic.brf +++ b/misc/profiles2/fastbike-verylowtraffic.brf @@ -331,6 +331,8 @@ assign classifiermask add multiply islinktype 8 multiply isgoodforcars 16 +# include `smoothness=` tags in the response's WayTags for track analysis +assign dummyUsage = smoothness= ---context:node # following code refers to node tags diff --git a/misc/profiles2/fastbike.brf b/misc/profiles2/fastbike.brf index 12271462d..2767c2e24 100644 --- a/misc/profiles2/fastbike.brf +++ b/misc/profiles2/fastbike.brf @@ -260,6 +260,8 @@ assign classifiermask add isbadoneway add multiply islinktype 8 multiply isgoodforcars 16 +# include `smoothness=` tags in the response's WayTags for track analysis +assign dummyUsage = smoothness= ---context:node # following code refers to node tags diff --git a/misc/profiles2/hiking-beta.brf b/misc/profiles2/hiking-beta.brf index aa359b013..3e0869cfb 100644 --- a/misc/profiles2/hiking-beta.brf +++ b/misc/profiles2/hiking-beta.brf @@ -237,7 +237,10 @@ assign costfactor switch highway=tertiary|tertiary_link|unclassified switch ismuddy 2.0 switch iswet switch issidewalk 1.4 1.7 switch issidewalk 1.7 2.0 - add cost_of_unknown ( switch ismuddy 0.5 0.0 ) + add cost_of_unknown ( switch ismuddy 0.5 0.0 ) + +# include `smoothness=` tags in the response's WayTags for track analysis +assign dummyUsage = smoothness= ---context:node # following code refers to node tags diff --git a/misc/profiles2/moped.brf b/misc/profiles2/moped.brf index fb4033bea..b2903709a 100644 --- a/misc/profiles2/moped.brf +++ b/misc/profiles2/moped.brf @@ -144,6 +144,8 @@ assign classifiermask add isbadoneway add multiply islinktype 8 multiply isgoodforcars 16 +# include `smoothness=` tags in the response's WayTags for track analysis +assign dummyUsage = smoothness= ---context:node # following code refers to node tags diff --git a/misc/profiles2/shortest.brf b/misc/profiles2/shortest.brf index 31153cb01..c55f3dbf2 100644 --- a/misc/profiles2/shortest.brf +++ b/misc/profiles2/shortest.brf @@ -114,6 +114,9 @@ assign classifiermask add multiply isroundabout 4 add multiply islinktype 8 multiply isgoodforcars 16 +# include `smoothness=` tags in the response's WayTags for track analysis +assign dummyUsage = smoothness= + ---context:node # following code refers to node tags assign defaultaccess diff --git a/misc/profiles2/trekking.brf b/misc/profiles2/trekking.brf index b8f339033..7d9a1a919 100644 --- a/misc/profiles2/trekking.brf +++ b/misc/profiles2/trekking.brf @@ -301,6 +301,8 @@ assign classifiermask add isbadoneway add multiply islinktype 8 multiply isgoodforcars 16 +# include `smoothness=` tags in the response's WayTags for track analysis +assign dummyUsage = smoothness= ---context:node # following code refers to node tags diff --git a/misc/profiles2/vm-forum-liegerad-schnell.brf b/misc/profiles2/vm-forum-liegerad-schnell.brf index 414e0a0e7..61c760463 100644 --- a/misc/profiles2/vm-forum-liegerad-schnell.brf +++ b/misc/profiles2/vm-forum-liegerad-schnell.brf @@ -396,7 +396,8 @@ assign classifiermask add isbadoneway add multiply islinktype 8 multiply isgoodforcars 16 - +# include `smoothness=` tags in the response's WayTags for track analysis +assign dummyUsage = smoothness= ---context:node # following code refers to node tags diff --git a/misc/profiles2/vm-forum-velomobil-schnell.brf b/misc/profiles2/vm-forum-velomobil-schnell.brf index bfa2ebd2d..ae6588ecc 100644 --- a/misc/profiles2/vm-forum-velomobil-schnell.brf +++ b/misc/profiles2/vm-forum-velomobil-schnell.brf @@ -396,7 +396,8 @@ assign classifiermask add isbadoneway add multiply islinktype 8 multiply isgoodforcars 16 - +# include `smoothness=` tags in the response's WayTags for track analysis +assign dummyUsage = smoothness= ---context:node # following code refers to node tags From 43961b8d08dffd861c4da84dd006e2e5b39c8461 Mon Sep 17 00:00:00 2001 From: Marcus Jaschen Date: Sat, 13 Jun 2020 20:00:32 +0200 Subject: [PATCH 2/2] remove `assign dummyUsage = smoothness=` for `vm-*` profiles as they consider the smoothness already --- misc/profiles2/vm-forum-liegerad-schnell.brf | 3 --- misc/profiles2/vm-forum-velomobil-schnell.brf | 3 --- 2 files changed, 6 deletions(-) diff --git a/misc/profiles2/vm-forum-liegerad-schnell.brf b/misc/profiles2/vm-forum-liegerad-schnell.brf index 61c760463..20cad1000 100644 --- a/misc/profiles2/vm-forum-liegerad-schnell.brf +++ b/misc/profiles2/vm-forum-liegerad-schnell.brf @@ -396,9 +396,6 @@ assign classifiermask add isbadoneway add multiply islinktype 8 multiply isgoodforcars 16 -# include `smoothness=` tags in the response's WayTags for track analysis -assign dummyUsage = smoothness= - ---context:node # following code refers to node tags # Parameter für Knotenpunkte diff --git a/misc/profiles2/vm-forum-velomobil-schnell.brf b/misc/profiles2/vm-forum-velomobil-schnell.brf index ae6588ecc..eddb8156a 100644 --- a/misc/profiles2/vm-forum-velomobil-schnell.brf +++ b/misc/profiles2/vm-forum-velomobil-schnell.brf @@ -396,9 +396,6 @@ assign classifiermask add isbadoneway add multiply islinktype 8 multiply isgoodforcars 16 -# include `smoothness=` tags in the response's WayTags for track analysis -assign dummyUsage = smoothness= - ---context:node # following code refers to node tags # Parameter für Knotenpunkte