Summary
In Hong Kong every lane line is a 3 m dash with a 9 m gap, 120 mm wide: Hong Kong has no entry in markings.STYLES (db635697, #1005), so it gets the fallback. Britain, Canada and the Netherlands each have a style from their national manual, and Ireland uses Britain's. This PR brings Hong Kong on par with them: a style from the Transport Department's design manual, written as a copy of Britain's with the centre line and the widths changed, the way Canada's is a copy of the US one.
Where the figures come from
The Transport Department's Transport Planning and Design Manual, Volume 3, chapter 5 "Road Markings", August 2026 edition, section 5.4.2 (index of the manual).
| Line | Manual | Fallback (dev) | This PR |
|---|---|---|---|
| Lane line under 70 km/h (RM 1101, table 5.4.2.1) | 1 m mark, 5 m gap, 100 mm | 3 / 9 m, 120 mm | 1 / 5 m, 100 mm in town |
| Lane line at 70 km/h or more (RM 1102) | 2 / 7 m, 100 mm | 3 / 9 m, 120 or 150 mm | 2 / 7 m, 100 mm out of town and on motorways |
| Centre line (RM 1103, table 5.4.2.2) | 3 / 5 m, 100 mm | 3 / 6 m in town, 6 / 12 m out of it | 3 / 5 m, 100 mm |
| Continuous edge line (RM 1109, table 5.4.2.7) | 100 mm | 150 mm, 200 mm on motorways | 100 mm |
The lane lines are Britain's (_GB: 1 / 5 and 2 / 7 m). The centre line is Hong Kong's own, one module for every road.
Results
12 places all over Hong Kong: city streets, new towns and village roads, 95 road geotiles. Every roads.extras call of each tile's build was made again with and without the entry; only the lines inside the tile's own box are counted.
| dev | this PR | |
|---|---|---|
| Lane dashes | 5,913 | 9,890 |
| Their mean length, town streets | 2.9 m | 1.0 m |
| Their mean length, out of town | 3.0 m | 2.0 m |
| Centre dashes | 686 | 837 |
| Their mean length out of town | 5.9 m | 3.0 m |
| Line width | 120 and 150 mm | 100 mm |
| Edge line width | 150 and 200 mm | 100 mm |
Solid lines keep their place and length: 72.3 km of edge line and 2.3 km of solid lane line in both.
Known limits
- Town or open land, not the speed limit. The manual picks the lane line by the speed limit. The style is used as Britain's is:
lane_urbanin town,lane_ruralout of it,lane_motorwayon motorways. A 70 km/h trunk road in town gets the 1 / 5 m line. - Double white lines stay one line, as on dev. Their sizes are in the manual's figures, not its text, and
roads.pydraws two lines only for yellow centre lines, Sweden and Britain's own style. The give-way line is not changed either. - Tunnels keep the fallback style, in every country:
roads._tunnel_chunkscallsextraswithout the country. In the test tiles that is 604 lane dashes, 9 % of dev's. - More pieces. Shorter dashes are more of them: 67 % more lane dashes in these tiles, the density Britain's style already has.
- Not seen in the game.
Who this affects
- Only places whose country is "HK".
markings.stylereturns the same object as before for every other code; a test checks Britain's lines. - Cache keys: nothing new; the tiles' code key changes with
markings.pyas for any change to it.
Validation
test_markingspasses with a newHongKongTest(4 tests throughroads.extras: lane lines, centre line, edge lines, Britain unchanged). On dev'smarkings.pythe three Hong Kong tests fail.test_roads,test_roadcorners,test_roundabouts,test_roadlanes,test_lanesections,test_paintlistandtest_blockworkerpass.test_determinism.platform_mathsfinds nothing inmarkings.py. I have not run the whole suite.
🤖 Generated with Claude Code on Fable 5.2