Skip to content

Commit

Permalink
Alter 'destination' outcome for 2-state access
Browse files Browse the repository at this point in the history
'destination' on path / footway etc. interpreted as 'yes' (matching current behaviour)
  • Loading branch information
dch0ph committed May 10, 2024
1 parent f99920e commit cdc9ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ SELECT
CASE
WHEN accesstag IN ('yes', 'designated', 'permissive') THEN 'yes'
WHEN accesstag IN ('destination', 'delivery', 'customers') THEN
CASE WHEN int_highway IN ('road', 'pedestrian') THEN 'restricted' ELSE 'no' END
CASE WHEN int_highway IN ('road', 'pedestrian') THEN 'restricted' ELSE 'yes' END
WHEN accesstag IN ('no', 'permit', 'private', 'agricultural', 'forestry', 'agricultural;forestry') THEN 'no'
WHEN accesstag IS NULL THEN NULL
ELSE 'unknown'
Expand Down

0 comments on commit cdc9ace

Please sign in to comment.