@@ -29,8 +29,8 @@ function maxspeed(tags::AbstractDict)::DEFAULT_OSM_MAXSPEED_TYPE
29
29
end
30
30
else
31
31
highway_type = get (tags, " highway" , " other" )
32
- key = getkey ( DEFAULT_MAXSPEEDS[], highway_type, " other " )
33
- return U (DEFAULT_MAXSPEEDS[][key] )
32
+ value = get (() -> DEFAULT_MAXSPEEDS[][ " other " ], DEFAULT_MAXSPEEDS[], highway_type )
33
+ return U (value )
34
34
end
35
35
end
36
36
@@ -55,8 +55,8 @@ function lanes(tags::AbstractDict)::DEFAULT_OSM_LANES_TYPE
55
55
end
56
56
else
57
57
highway_type = get (tags, " highway" , " other" )
58
- key = getkey ( DEFAULT_LANES[], highway_type, " other " )
59
- return U (DEFAULT_LANES[][key] )
58
+ value = get (() -> DEFAULT_LANES[][ " other " ], DEFAULT_LANES[], highway_type )
59
+ return U (value )
60
60
end
61
61
end
62
62
@@ -80,8 +80,8 @@ function is_oneway(tags::AbstractDict)::Bool
80
80
return true
81
81
else
82
82
highway_type = get (tags, " highway" , " other" )
83
- key = getkey (DEFAULT_ONEWAY, highway_type, " other" )
84
- return DEFAULT_ONEWAY[key]
83
+ value = get (() -> DEFAULT_ONEWAY[ " other" ], DEFAULT_ONEWAY, highway_type )
84
+ return value
85
85
end
86
86
end
87
87
0 commit comments