Modify

Opened 4 years ago

Last modified 10 months ago

#15219 new enhancement

remote control with an Overpass query

Reported by: Polyglot Owned by: team
Priority: normal Milestone:
Component: Core remotecontrol Version:
Keywords: Overpass API, remote control Cc:

Description

Hi,

I'd like to see an enhancement of the remote control capabilities, such that one can pass in an Overpass API query. If no bounding box is given, open the download dialog and let the user select an area.

If no url is given, use the standard Overpass instance.

Polyglot

Attachments (0)

Change History (3)

comment:1 Changed 2 years ago by bagage

Is there any blocking idea here? If not, is someone implementing it? If not, are there pointers on how to get started on it?

Thanks!

comment:2 in reply to:  1 Changed 23 months ago by simon04

Replying to bagage:

Is there any blocking idea here?

Most likely not.

If not, is someone implementing it?

Not at the moment.

If not, are there pointers on how to get started on it?

Remote control is organized in handlers – one for each endpoint such as /import, /zoom, /add_node. Take a look at org.openstreetmap.josm.io.remotecontrol.handler.AddNodeHandler for /add_node which is a simple one. The parameter addtags= causes JOSM to display a dialog for adding tags.

comment:3 Changed 10 months ago by anonymous

Thanks simon04 for the insight!

Someone pointed me to a work around: one can use loading via URL by encoding Overpass query directly:

http://127.0.0.1:8111/import?url=https%3A%2F%2Foverpass-api.de%2Fapi%2Finterpreter%3Fdata%3Darea(3601403916)-%253E.searchArea%253B%250Anode(id%253A1)(area.searchArea)%253B%250Aout%2520meta%253B%252F*fixed%2520by%2520auto%2520repair*%252F

So maybe that issue can be closed if you wish.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to Polyglot
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment


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

 
Note: See TracTickets for help on using tickets.