Add “Maximum Speed” to analysis sidebar
It shows the distribution of maximum speeds for all ways on the current route (if that data is available, otherwise it’s summed up under “unknown”). `maxspeed:forward` and `maxspeed:backward` is respected in conjunction with `reversedirection`. Hovering/clicking table rows to highlight matching segments on the route work the identical to the other analysis tables. Additionally, all tags in the analysis tab (way type, surface, smoothness) are translateable now. The values were added to `en.json`. Some HTML is rendered with template literals now, instead of concatenating strings. Variable declarations were changed from `var` to `const`/`let`.
This commit is contained in:
parent
76f31aeb2b
commit
a285751416
3 changed files with 177 additions and 95 deletions
|
|
@ -285,10 +285,66 @@
|
|||
},
|
||||
"sidebar": {
|
||||
"analysis": {
|
||||
"data": {
|
||||
"highway": {
|
||||
"footway": "Footway",
|
||||
"path": "Path",
|
||||
"residential": "Residential",
|
||||
"cycleway": "Cycleway",
|
||||
"track": "Track",
|
||||
"service": "Service",
|
||||
"tertiary": "Tertiary",
|
||||
"secondary": "Secondary",
|
||||
"primary": "Primary",
|
||||
"trunk": "Trunk",
|
||||
"motorway": "Motorway",
|
||||
"motorway_link": "Motorway Link",
|
||||
"primary_link": "Primary Link",
|
||||
"secondary_link": "Secondary Link",
|
||||
"tertiary_link": "Tertiary Link",
|
||||
"trunk_link": "Trunk Link",
|
||||
"living_street": "Living Street",
|
||||
"pedestrian": "Pedestrian",
|
||||
"road": "Road",
|
||||
"bridleway": "Bridleway",
|
||||
"steps": "Steps",
|
||||
"sidewalk": "Sidewalk",
|
||||
"crossing": "Crossing",
|
||||
"unclassified": "Unclassified"
|
||||
},
|
||||
"surface": {
|
||||
"asphalt": "Asphalt",
|
||||
"cobblestone": "Cobblestone",
|
||||
"compacted": "Compacted",
|
||||
"dirt": "Dirt",
|
||||
"fine_gravel": "Fine Gravel",
|
||||
"grass": "Grass",
|
||||
"gravel": "Gravel",
|
||||
"ground": "Ground",
|
||||
"paved": "Paved",
|
||||
"sand": "Sand",
|
||||
"unpaved": "Unpaved",
|
||||
"wood": "Wood",
|
||||
"concrete": "Concrete",
|
||||
"paving_stones": "Paving Stones",
|
||||
"sett": "Sett"
|
||||
},
|
||||
"smoothness": {
|
||||
"excellent": "Excellent",
|
||||
"good": "Good",
|
||||
"intermediate": "Intermediate",
|
||||
"bad": "Bad",
|
||||
"very_bad": "Very Bad",
|
||||
"horrible": "Horrible",
|
||||
"very_horrible": "Very Horrible",
|
||||
"impassable": "Impassable"
|
||||
}
|
||||
},
|
||||
"header": {
|
||||
"highway": "Highway",
|
||||
"smoothness": "Smoothness",
|
||||
"surface": "Surface"
|
||||
"surface": "Surface",
|
||||
"maxspeed": "Maximum Speed"
|
||||
},
|
||||
"table": {
|
||||
"category": "Category",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue