Skip to content

Commit

Permalink
Add bike/foot/horse/mtb fields (systemed#490)
Browse files Browse the repository at this point in the history
Adding `bicycle`, `foot`, `horse`, & `mtb_scale` fields per: https://openmaptiles.org/schema/#bicycle
  • Loading branch information
dschep authored Apr 20, 2023
1 parent 8fbfcaa commit ff7f0b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/process-openmaptiles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,10 @@ function way_function(way)
if access=="private" or access=="no" then way:Attribute("access", "no") end
if pavedValues[surface] then way:Attribute("surface", "paved") end
if unpavedValues[surface] then way:Attribute("surface", "unpaved") end
if way:Holds("bicycle") then way:Attribute("bicycle", way:Find("bicycle")) end
if way:Holds("foot") then way:Attribute("foot", way:Find("foot")) end
if way:Holds("horse") then way:Attribute("horse", way:Find("horse")) end
if way:Holds("mtb:scale") then way:Attribute("mtb_scale", way:Find("mtb:scale")) end

-- Service
if highway == "service" and service ~="" then way:Attribute("service", service) end
Expand Down

0 comments on commit ff7f0b7

Please sign in to comment.