lib/client_strans.rb
# return all Stops closes coods.
return all Stops closes coods.
return all Stops closes coods .
def nearby_stops(lng, lat, dist, sources = nil)
    stops = []
    sources ||= Stop.all
    sources.each do |stop|
      stops << stop if check_stop(stop, lng, lat, dist)
    end
    stops.sort! { |a, b| a.dist <=> b.dist }
  end
def nearby_stops ( lng , lat , dist , sources = nil ) stops = [ ] sources ||= Stop . all sources . each do | stop | stops << stop if check_stop ( stop , lng , lat , dist ) end stops . sort! { | a , b | a . dist <=> b . dist } end
return all Stops closes coods.
return all Stops closes coods .
lng
<not_specific>
lat
<not_specific>
dist
<not_specific>
sources
<not_specific>