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.
This commit is contained in:
Marcus Jaschen 2020-06-13 16:43:39 +02:00
parent 0841216cda
commit 7da925a212
8 changed files with 19 additions and 3 deletions

View file

@ -331,6 +331,8 @@ assign classifiermask
add multiply islinktype 8 add multiply islinktype 8
multiply isgoodforcars 16 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 ---context:node # following code refers to node tags

View file

@ -260,6 +260,8 @@ assign classifiermask add isbadoneway
add multiply islinktype 8 add multiply islinktype 8
multiply isgoodforcars 16 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 ---context:node # following code refers to node tags

View file

@ -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 highway=tertiary|tertiary_link|unclassified switch ismuddy 2.0 switch iswet switch issidewalk 1.4 1.7
switch issidewalk 1.7 2.0 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 ---context:node # following code refers to node tags

View file

@ -144,6 +144,8 @@ assign classifiermask add isbadoneway
add multiply islinktype 8 add multiply islinktype 8
multiply isgoodforcars 16 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 ---context:node # following code refers to node tags

View file

@ -114,6 +114,9 @@ assign classifiermask add multiply isroundabout 4
add multiply islinktype 8 add multiply islinktype 8
multiply isgoodforcars 16 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 ---context:node # following code refers to node tags
assign defaultaccess assign defaultaccess

View file

@ -301,6 +301,8 @@ assign classifiermask add isbadoneway
add multiply islinktype 8 add multiply islinktype 8
multiply isgoodforcars 16 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 ---context:node # following code refers to node tags

View file

@ -396,7 +396,8 @@ assign classifiermask add isbadoneway
add multiply islinktype 8 add multiply islinktype 8
multiply isgoodforcars 16 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 ---context:node # following code refers to node tags

View file

@ -396,7 +396,8 @@ assign classifiermask add isbadoneway
add multiply islinktype 8 add multiply islinktype 8
multiply isgoodforcars 16 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 ---context:node # following code refers to node tags