class Underpass::QL::Query
Provides a shortcut method that makes it easy to work with the library
Public Class Methods
perform(bounding_box, query)
click to toggle source
Shortcut method that glues together the whole library.
-
bounding_box
an RGeo polygon -
query
is the OverpassQL
query
# 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