Skip to content

Commit

Permalink
Allow oneway=-1,1 only (#1267)
Browse files Browse the repository at this point in the history
This PR removes cases of `oneway=0` as this is an assumed default.  It is not necessary to have this tag on every road or path and by removing it we can save space in the tiles by only including the meaningful values.  It leaves intact `oneway=1` and `oneway=-1`, the latter of which indicates a oneway in the opposite direction of the way.

Unblocks #1265
  • Loading branch information
ZeLonewolf committed Oct 28, 2021
1 parent cded423 commit a0d9159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layers/transportation/transportation.sql
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ SELECT osm_id,
WHEN highway_is_link(highway)
OR is_ramp
THEN 1 END AS ramp,
is_oneway::int AS oneway,
CASE WHEN is_oneway <> 0 THEN is_oneway::int END AS oneway,
brunnel(is_bridge, is_tunnel, is_ford) AS brunnel,
NULLIF(service, '') AS service,
access,
Expand Down

0 comments on commit a0d9159

Please sign in to comment.