ELASTICPATHING/SOURCECODE/UbiComp2014/Elastic_Pathing_Code/navigator.rb
#Get the number of lanes of a way. Defaults to 1 if the way is not known.
Get the number of lanes of a way. Defaults to 1 if the way is not known.
Get the number of lanes of a way . Defaults to 1 if the way is not known .
def lanes(wid)
    num_lanes = 1
    @map_data.execute("SELECT lanes FROM lanes WHERE wid = #{wid};"){|r| 
      num_lanes = r['lanes'].to_i
    }
    return num_lanes
  end
def lanes ( wid ) num_lanes = 1 @map_data . execute ( "SELECT lanes FROM lanes WHERE wid = #{wid};" ) { | r | num_lanes = r [ 'lanes' ] . to_i } return num_lanes end
Get the number of lanes of a way.
Get the number of lanes of a way .
wid