Skip to content

Commit

Permalink
Merge pull request cyclosm#587 from Famlam/patch-1
Browse files Browse the repository at this point in the history
Proposal for a fix for highway=busway cyclosm#557
  • Loading branch information
Phyks committed Jul 22, 2021
2 parents 5e1d2b6 + 64fa08b commit 3dbb141
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion views.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ CREATE VIEW cyclosm_ways AS
WHEN highway='road' THEN 'residential' -- render "road" as residential
WHEN highway='trunk' THEN 'motorway' -- trunk as motorway, check can_bicycle if cyclable
WHEN highway='trunk_link' THEN 'motorway_link' -- trunk as motorway
WHEN highway='busway' THEN 'service' -- busway as service
WHEN highway='footway' AND (bicycle='yes' OR bicycle='designated') THEN 'path'
WHEN highway='bridleway' AND (bicycle='yes' OR bicycle='designated') THEN 'path'
WHEN highway!='bus_guideway' THEN highway
Expand Down Expand Up @@ -99,7 +100,7 @@ CREATE VIEW cyclosm_ways AS
WHEN bicycle IN ('no', 'private', 'use_sidepath') THEN 'no'
WHEN bicycle IS NOT NULL THEN bicycle
WHEN tags->'motorroad' IN ('yes') THEN 'no'
WHEN highway IN ('motorway', 'motorway_link') THEN 'no'
WHEN highway IN ('motorway', 'motorway_link', 'busway') THEN 'no'
WHEN tags->'vehicle' IN ('no', 'private') THEN 'no'
WHEN tags->'vehicle' IS NOT NULL THEN tags->'vehicle'
WHEN access IN ('no', 'private') THEN 'no'
Expand Down

0 comments on commit 3dbb141

Please sign in to comment.