Skip to content

Commit

Permalink
Add temporary test-relations.rb file
Browse files Browse the repository at this point in the history
  • Loading branch information
janosrusiczki committed Oct 11, 2019
1 parent fb79a44 commit 5c47ba8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test-relations.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# frozen_string_literal: true

# Use me by doing:
# bundle console
# source './test-relatios.rb'

require 'underpass'
wkt = <<-WKT
POLYGON ((
23.65 47.65,
23.6995 47.65,
23.6995 47.71,
23.65 47.71,
23.65 47.65
))
WKT
op_query = 'relation["name"="Árok"];'
op_bbox = Underpass::QL::BoundingBox.from_wkt(wkt)
request = Underpass::QL::Request.new(op_query, op_bbox)
api_response = Underpass::Client.perform(request)
response = Underpass::QL::Response.new(api_response)
matcher = Underpass::Matcher.new(response)

0 comments on commit 5c47ba8

Please sign in to comment.