cycleway value should fall back to cycleway:both if available

This commit is contained in:
Nate Wessel 2021-12-19 12:11:28 -05:00 committed by GitHub
parent ff1af413d6
commit f9840051a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -275,7 +275,7 @@ function handle_bicycle_tags(profile,way,result,data)
data.barrier = way:get_value_by_key("barrier")
data.oneway = way:get_value_by_key("oneway")
data.oneway_bicycle = way:get_value_by_key("oneway:bicycle")
data.cycleway = way:get_value_by_key("cycleway")
data.cycleway = way:get_value_by_key("cycleway") and way:get_value_by_key("cycleway") or way:get_value_by_key("cycleway:both")
data.cycleway_left = way:get_value_by_key("cycleway:left")
data.cycleway_right = way:get_value_by_key("cycleway:right")
data.duration = way:get_value_by_key("duration")