Skip to content

Commit ee4dabf

Browse files
TheMarexCopilot
andauthored
Update profiles/bicycle.lua
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8723464 commit ee4dabf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

profiles/bicycle.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@ function handle_bicycle_tags(profile,way,result,data)
306306
data.barrier = way:get_value_by_key("barrier")
307307
data.oneway = way:get_value_by_key("oneway")
308308
data.oneway_bicycle = way:get_value_by_key("oneway:bicycle")
309-
data.cycleway = way:get_value_by_key("cycleway") and way:get_value_by_key("cycleway") or way:get_value_by_key("cycleway:both")
309+
local cycleway = way:get_value_by_key("cycleway")
310+
data.cycleway = cycleway and cycleway or way:get_value_by_key("cycleway:both")
310311
data.cycleway_left = way:get_value_by_key("cycleway:left")
311312
data.cycleway_right = way:get_value_by_key("cycleway:right")
312313
data.duration = way:get_value_by_key("duration")

0 commit comments

Comments
 (0)