readers/parking.rb
# Priority order for which OSM parking to consider first (smaller is better)
# this is usually just distance, but we apply an extra weighting if the second-placed
#   alternative is significantly worse (i.e. more than 10m away)
Priority order for which OSM parking to consider first (smaller is better)
this is usually just distance, but we apply an extra weighting if the second-placed
alternative is significantly worse
Priority order for which OSM parking to consider first ( smaller is better ) this is usually just distance but we apply an extra weighting if the second - placed alternative is significantly worse
def priority(h)
		dist = nearest(h)[1]
		if h.size>1
			v = h.values.sort
			if v[1]-v[0] > 10 then dist*=0.5 end
		end
		dist
	end
def priority ( h ) dist = nearest ( h ) [ 1 ] if h . size > 1 v = h . values . sort if v [ 1 ] - v [ 0 ] > 10 then dist *= 0.5 end end dist end
Priority order for which OSM parking to consider first (smaller is better)
this is usually just distance, but we apply an extra weighting if the second-placed
alternative is significantly worse (i.e.
Priority order for which OSM parking to consider first ( smaller is better ) this is usually just distance but we apply an extra weighting if the second - placed alternative is significantly worse ( i . e .
h
<not_specific>