2 Commits

Author SHA1 Message Date
dch0ph
248b72d6b2
Additional access marking (#5049)
* Restricted marking for motorway/trunk/primary

* Add access marking for highway=pedestrian

* Update functions.sql

highway=pedestrian should support restricted access

* Change pedestrian access marking colour

Change pedestrian access marking colour to common light shade of grey.
Also consolidate names.
2025-01-16 22:41:58 +02:00
dch0ph
fbb0fb049f
Rendering specific access tags (#4952)
* Interpret additional access tags

mode specific access tags relevant to primary mode of highway interpreted to determine access marking for:
Road types (motorcar > motor_vehicle > vehicle)
Footway (foot)
Cycleway (bicycle)
Bridleway (horse)

* Function load in CI

* Add carto_path_primary_path

* Moving customers, permit

Following discussion moving:
access=customers -> "restricted" marking
access=permit -> "no" marking

* Major changes in response to comments

Functions renamed for clarity

Changed logic for mode-specific tags, only ignoring 'unknown' values

unknown access type return for unknown/uninterpretable

path promoted to cycleway/bridleway in SQL rather than MSS

* Use foot primary mode for highway=pedestrian

* Typo fix

* Remove incorrect END statements

* Fix regression on introducing explicit unknown

* Fix regression for highway=path

* Alter 'destination' outcome for 2-state access

'destination' on path / footway etc. interpreted as 'yes' (matching current behaviour)

* Simplify functions.sql

Reduce number of functions
Tidy comments

* Tidy access functions

Consistent formatting of CASE/WHEN
Use more idiomatic COALESCE(NULLIF(...),)

* Update functions.sql

Change argument name accesstag -> accessvalue
Improve documentation
Simplify logic for promoted paths

* Remove obsolete comment from MML

* Avoid unknown overload

Return "unrecognised" rather than "unknown" if access restriction is not one of recognised values

* Extend code comments

Note on short-circuiting logic in carto_highway_int_access

* Fix broken bridge on path

Bridge not being rendered on highway=path
2024-10-16 16:04:56 +03:00