Class: OverpassAPI::QL
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#bounding_box, #initialize, #query, #raw_query
Constructor Details
This class inherits a constructor from OverpassAPI::Base
Instance Method Details
#build_query(q) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/ql.rb', line 5 def build_query(q) header = "" header << "[bbox:#{@bbox}]" if @bbox header << "[timeout:#{@timeout}]" if @timeout header << "[maxsize:#{@maxsize}]" if @maxsize header << "[out:json]" "#{header};#{q}" end |