UnionInternationalCheminsdeFer / OSDM

Projects related to an open sales & distribution API for public transportation.
https://osdm.io
Apache License 2.0
57 stars 21 forks source link

Add more graphical items and introduce walls for coach layouts #710

Open oriolclosa opened 1 day ago

oriolclosa commented 1 day ago

At VR Snabbtåg (Sweden) we need to be able to build seatmaps that contain elements not available today in the catalogue of graphical items. In order to overcome this, we propose a few new icons.

The reason to add more window sizes is to be able to accomplish something similar to this. In here, we use two medium windows which "overflow" in both sides allowing a narrower "wall" without window with the big window placed in the middle with the table.

We also think that it would be beneficial to indicate where coach entrances are located with a new sign. This can be specific to the entrances or simply show an arrow. In order to accomplish that we would need direction to be added on internals as requested on #709.

Graphical icons

Icon Description Icon code Orientation used Mounting used
image Small window, width covers one space 173 (135)
image Medium window, width covers two spaces 174
image Big window, width covers three spaces 175
image Door with left opening (traditional) 176 Left
image Door with left opening (traditional) 176 Top
image Door with left opening (traditional) 176 Right
image Door with left opening (traditional) 176 Bottom
image Door with right opening (traditional) 177 Left
image Door with right opening (traditional) 177 Top
image Door with right opening (traditional) 177 Right
image Door with right opening (traditional) 177 Bottom
image Door (sliding) 178 Top, bottom
image Door (sliding) 178 Left, right
image Entrance 179 Left
image Entrance 179 Top
image Entrance 179 Right
image Entrance 179 Bottom

Resolution

The way the seatmap is being implemented for the Swedish market takes into consideration the possibility that an icon can occupy more than one cell. For example a seat can be 40 cells wide allowing better placement of the objects due to, for example, tables not having the same width as seats. Therefore, it might be needed to introduce the concept of width and height for every place, sign and internal.

Walls

As an additional improvement I feel like walls could simply be a set of vectors. This would allow more complex wall structures within each coach. By having a list of pairs of coordinates one can accomplish diagonal walls and any desired structure without the addition of new icons.

CGantert345 commented 4 hours ago

Icons will be added to the code list.