Method: Underpass::QL::Query.perform
- Defined in:
- lib/underpass/ql/query.rb
.perform(bounding_box, query) ⇒ Object
Shortcut method that glues together the whole library.
-
bounding_boxan RGeo polygon -
queryis the Overpass QL query
10 11 12 13 14 |
# File 'lib/underpass/ql/query.rb', line 10 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 |