Currently, colors of transport routes are being converted into 16 palette colors. This is really bad because people rely on the exact colors to recognize lines, which could deviate pretty far away from the palette colors.
Moreover, there are many transport systems with more than 16 lines, so different lines with (originally) different colors would be represented by the same color. For example, Beijing Subway lines 2, 4, 10, 17 and Daxing Airport Express are represented by different shades of blue ($\color{#00529B}\textsf{2 = 00529B}$, $\color{#008994}\textsf{4 = 008994}$, $\color{#178ABB}\textsf{10 = 178ABB}$, $\color{#00A9A9}\textsf{17 = 00A9A9}$, $\color{#3F48CC}\textsf{DAE = 3F48CC}$), but are all converted into “blue”, making them indistinguishable.
I suggest remove the conversion and use the original colors instead.