Skip to content

Commit 492126a

Browse files
author
Andy Townsend
committed
Detect more TROs on BOATs.
1 parent 5b34a56 commit 492126a

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This page describes changes made in these projects: [SomeoneElse-style](https://
77
(raster, vector) Changed the `shop=seafood` icon to match the `cuisine=seafood` marker used on fast food and restaurants. Previously it matched `cuisine=fish_and_chips`.
88
(raster, vector) Handle a couple more `support` values for clocks.
99
(raster, vector) Tiger crossings do not imply traffic signals.
10+
(raster, vector) Detect more TROs on BOATs.
1011

1112
## Raster as yet unreleased, vector 10/01/2026
1213
(raster, vector) Removed `amenity=funeral`; no longer in the data.

shared_lua.lua

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,22 @@ function consolidate_lua_01_t( passedt )
11661166
passedt.service = nil
11671167
end
11681168

1169+
-- ----------------------------------------------------------------------------
1170+
-- If vehicle=no or vehicle=destination is set on a BOAT, it's probably a TRO,
1171+
-- so display as a bridleway instead
1172+
-- ----------------------------------------------------------------------------
1173+
if (( passedt.highway == "boatwide" ) and
1174+
(( passedt.vehicle == "no" ) or
1175+
( passedt.vehicle == "destination" ))) then
1176+
passedt.highway = "bridlewaywide"
1177+
end
1178+
1179+
if (( passedt.highway == "boatnarrow" ) and
1180+
(( passedt.vehicle == "no" ) or
1181+
( passedt.vehicle == "destination" ))) then
1182+
passedt.highway = "bridlewaynarrow"
1183+
end
1184+
11691185
-- ----------------------------------------------------------------------------
11701186
-- If motor_vehicle=no is set on a BOAT, it's probably a TRO, so display as
11711187
-- an RBY instead

taginfo.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4082,6 +4082,9 @@
40824082
{ "key": "usage", "value": "watershed_management", "description": "Canal leats and spillways" },
40834083
{ "key": "utility", "description": "Detect utility aerial pipeline markers" },
40844084
{ "key": "utility", "value": "yes", "description": "Detect utility aerial pipeline markers" },
4085+
{ "key": "vehicle", "description": "Detect whether a BOAT might have a TRO on it; if so, display as a bridleway" },
4086+
{ "key": "vehicle", "value": "destination", "description": "Detect whether a BOAT might have a TRO on it; if so, display as a bridleway" },
4087+
{ "key": "vehicle", "value": "no", "description": "Detect whether a BOAT might have a TRO on it; if so, display as a bridleway" },
40854088
{ "key": "vending", "description": "Parcel lockers, roadside stands, excrement bags" },
40864089
{ "key": "vending", "value": "bottle_return", "description": "Reverse Vending - shown as 'returned item' inside regular vending machine icon", "icon_url": "https://raw.githubusercontent.com/SomeoneElseOSM/openstreetmap-carto-AJT/master/symbols/bottle_return.p.16.png" },
40874090
{ "key": "vending", "value": "cheese", "description": "Roadside stands" },

0 commit comments

Comments
 (0)