Class: Underpass::QL::Query

Inherits:
Object
  • Object
show all
Defined in:
lib/underpass/ql/query.rb

Overview

Convenience class, provides the perform static method.

Class Method Summary collapse

Class Method Details

.perform(bounding_box, query) ⇒ Object



7
8
9
10
11
# File 'lib/underpass/ql/query.rb', line 7

def self.perform(bounding_box, query)
  op_bbox = Underpass::QL::BoundingBox.from_geometry(bounding_box)
  response = Underpass::QL::Request.new(query, op_bbox).run
  Underpass::QL::Parser.new(response).parse.matches
end