Opened 3 years ago

Closed 20 months ago

Last modified 19 months ago

#11975 closed enhancement (fixed)

[Patch] Support Extended Overpass Turbo Queries

Reported by: naoliv Owned by: simon04
Priority: normal Milestone: 16.10
Component: Core Version:
Keywords: overpass turbo geocodeArea Cc:


Building this query aeroway=* in "são paulo, brazil" we have:

// fetch area “são paulo, brazil” to search in
{{geocodeArea:são paulo, brazil}}->.searchArea;
// gather results
  // query part for: “aeroway=*”
// print results
out meta;
out meta;

Note that we are using a geocodeArea area here.
But JOSM still uses a bbox when querying the API server:

INFO: GET*%E2%80%9D%0A++node%5B%22aeroway%22%5D%28area.searchArea%29%3B%0A++way%5B%22aeroway%22%5D%28area.searchArea%29%3B%0A++relation%5B%22aeroway%22%5D%28area.searchArea%29%3B%0A%29%3B%0A%2F%2F+print+results%0Aout+meta%3B%0A%3E%3B%0Aout+meta%3B&bbox=-50.4103322,-22.6399923,-50.4057894,-22.6367102
ERRO: ResponseCode=400 ResponseCode=400
	at org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask$DownloadTask.parseDataSet(
	at org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask$DownloadTask.realRun(
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(
	at java.util.concurrent.Executors$
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$


Repository Root:
Build-Date: 2015-10-15 01:32:10
Last Changed Author: Don-vip
Revision: 8882
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Relative URL: ^/trunk
Last Changed Date: 2015-10-15 01:02:36 +0200 (Thu, 15 Oct 2015)
Last Changed Rev: 8882

Identification: JOSM/1.5 (8882 pt_BR) Linux Debian GNU/Linux testing (stretch)
Memory Usage: 439 MB / 9102 MB (120 MB allocated, but free)
Java version: 1.7.0_85, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u85-2.6.1-3
VM arguments: [-Dawt.useSystemAAFontSettings=on]

Attachments (2)

Change History (17)

comment:1 Changed 3 years ago by simon04

geocodeArea is no Overpass construct, but an Overpass turbo construct, which performs a Nominatim search to obtain the bounds.

comment:2 Changed 3 years ago by Don-vip

Keywords: overpass turbo geocodeArea added

comment:3 Changed 3 years ago by tyr_asd

Here's the documentation of the extended query syntax used by overpass turbo.

comment:4 Changed 3 years ago by Don-vip

Summary: Should not use bbox when using geocodeArea in overpassSupport Extended Overpass Turbo Queries
Type: defectenhancement

comment:5 Changed 21 months ago by simon04

Ticket #12939 has been marked as a duplicate of this ticket.

comment:6 Changed 21 months ago by simon04

Milestone: 16.08

comment:7 Changed 21 months ago by simon04

Owner: changed from team to simon04
Status: newassigned
Summary: Support Extended Overpass Turbo Queries[Patch] Support Extended Overpass Turbo Queries

With all the dependencies, integrating expand.js seems more complicated than evaluating geocodeArea in Java. With the patches attached, only geocodeArea is evaluated.

comment:8 Changed 21 months ago by Don-vip

patch can be applied :)

comment:9 Changed 20 months ago by Don-vip

I'd like to see it merged in the incoming next release, is there a specific reason why this patch has not been applied yet?

comment:10 Changed 20 months ago by Don-vip

Milestone: 16.0816.09

comment:11 Changed 20 months ago by simon04

I wanted to rewrite attachment:0002-Evaluate-extended-Overpass-querty-geocodeArea.patch​ to do the Nominatim search when executing the download (and not invoking the wizard). This would do all IO stuff in the same process and allow copying queries from to the download dialog.
I haven't yet found the time to do this, though.

comment:12 Changed 20 months ago by naoliv

Ticket #13638 has been marked as a duplicate of this ticket.

comment:13 Changed 20 months ago by simon04

In 11002/josm:

see #11975 - Extract NameFinder for Nominatim queries

comment:14 Changed 20 months ago by simon04

Resolution: fixed
Status: assignedclosed

In 11003/josm:

fix #11975 - Evaluate extended Overpass queries bbox, geocodeArea

comment:15 Changed 19 months ago by simon04

Milestone: 16.0916.10

Milestone renamed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain simon04.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.