Skip to content

Commit

Permalink
change how destination is interpreted in two class access display to …
Browse files Browse the repository at this point in the history
…match current behaviour
  • Loading branch information
imagico committed May 13, 2024
1 parent 61920a8 commit 4508ad5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ 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
CASE
WHEN fallback IN ('yes', 'designated', 'permissive') THEN 'unknown_yes'
WHEN fallback IN ('destination', 'delivery', 'customers') THEN
CASE WHEN int_highway IN ('road', 'pedestrian') THEN 'unknown_restricted' ELSE 'unknown_no' END
CASE WHEN int_highway IN ('road', 'pedestrian') THEN 'unknown_restricted' ELSE 'unknown_yes' END
WHEN fallback IN ('no', 'permit', 'private', 'agricultural', 'forestry', 'agricultural;forestry') THEN 'unknown_no'
WHEN fallback IS NULL THEN 'unknown_yes'
ELSE 'unknown'
Expand Down

0 comments on commit 4508ad5

Please sign in to comment.