At My Fingertips

Documentation

Swiss Hiking Marks

Switzerland has an extensive hiking trail network with 65000 kilometers of signed hiking trails. There are three kinds of trails: hiking trails (marked in yellow), mountain hiking trails (marked in white-red-white), and alpine hiking trails (marked in white-blue-white).

The trails are signed with four kinds of signs, amongst them arrow-shaped hiking marks.

Swiss Hiking Marks

Let's compose those marks with PyTamaro!

Hiking Trail Mark

The hiking trail mark is composed of a yellow arrow. The measurements are specified in the handbook of hiking trail signage published by Swiss Federal Office of Streets and the Swiss Hiking Trail Association. Here is the figure with the measaurements of a hiking trail mark:

Sketch of Hiking Trail Mark

The color is RAL 1007 "daffodil yellow", which in the RGB model consists of 232 red, 140 green, and 0 blue.

You probably saw a rectangle beside a triangle. That's great!

The measurement of the triangle are given by its width and height. But the PyTamaro triangle function expects two sides and the enclosed angle.

You may want to decompose the arrow's triangle into two right triangles (top and bottom half). Those you can construct given the width and half the height.

You can use the right_triangle function from your toolbox (if you don't have that function in your toolbox yet, you may want to do the PyTamaro iconTriangles activity).

Loading...

Mountain Hiking Trail Mark

Mountain hiking trails consist of a red arrow, but also include white stripes. Here is the figure with the corresponding measaurements:

Sketch of Mountain Hiking Trail Mark

The two colors are:

  • RAL 9016 "traffic white": RGB: 241-241-234
  • RAL 3020 "traffic red": RGB 187-31-17
Loading...

Alpine Hiking Trail Mark

The alpine hiking trail mark has the same structure as the mountain hiking trail mark. It simply uses different colors. Specifically, it uses blue instead of red for the arrow.

The two colors are:

Loading...

What You Learned

You learned about one type of signage you encounter on the Swiss hiking trail network. This type of sign actually is quite rare; the other types are much more common.

You also (hopefully) practiced to structure your code so you can reuse functionality. The three marks are very similar. Did you manage to factor out the commonalities into separate functions?


This activity has been created by LuCE Research Lab and is licensed under CC BY-SA 4.0.

Swiss Hiking Marks

Logo of PyTamaro

PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI

Privacy PolicyPlatform Version c08406b (Wed, 20 Nov 2024 12:30:00 GMT)