Skip to content

Commit

Permalink
Update ouverpass_parser
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Apr 15, 2024
1 parent 111ebc2 commit e986b37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIT
remote: https://github.com/teritorio/overpass_parser-rb.git
revision: f58f0da05054fe84521a61d32b4f2450490e6db6
revision: dba83837732df330ef018add559a4ab9d04b5c71
specs:
overpass_parser (1.0.0)
rice (~> 4.0)
Expand Down
6 changes: 3 additions & 3 deletions datasources/sources/overpass_select.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

require 'active_support/all'
require 'cgi'
require 'overpass_parser/visitor'
require 'overpass_parser'
require 'overpass_parser/nodes/query_objects'
require 'overpass_parser/nodes/selectors'

Expand Down Expand Up @@ -89,8 +89,8 @@ def osm_tags
return super() if !@settings.with_osm_tags

if @selectors.blank?
tree = OverpassParser.tree(@settings.query)
selects = deep_select(tree[0])
tree = OverpassParser.parse(@settings.query)
selects = deep_select(tree)

super().deep_merge_array({
'data' => selects.collect{ |select|
Expand Down

0 comments on commit e986b37

Please sign in to comment.