NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I want to load a route relation into JOSM via the remote control. I tried to use load_object, but this only loads the relation itself and not its members. Now I'm looking for a possibility to load its members via remote control as well.

Is there any possibility to do that? Or does anyone know how to achieve this without adding every single member id to the remote control URL?

asked 20 Jun '14, 09:14

mapper999's gravatar image

mapper999
91227
accept rate: 0%

edited 30 Apr '15, 17:01

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


There are a new parameter if you load objects: relation_members if you set it true using the load_object command, you get all members of the relation. The paramater and the other commands are explained here: https://josm.openstreetmap.de/wiki/Help/Preferences/RemoteControl

permanent link

answered 14 Feb '15, 21:11

Christopher's gravatar image

Christopher
126153
accept rate: 100%

Thanks for the information. Main advantage of this solution seems to be that parent relations are loaded into the editor as well.

(17 Feb '15, 16:41) mapper999

The remote control interface has a generic "import" method that allows you to specify any URL to be loaded. You could use that and specify the URL http://api.openstreetmap.org/api/0.6/relation/id/full to load the full relation.

Note however that this operation can time out if you try to load very large relations, unlike JOSM's own "download relation with members" method which loads members individually.

permanent link

answered 20 Jun '14, 10:13

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

2

Thank you Frederik for the quick answer. This worked without timeout for a relation with 400 members. For the record the full url for the remote control is http://127.0.0.1:8111/import?url=http://api.openstreetmap.org/api/0.6/relation/<id>/full

(20 Jun '14, 10:32) mapper999
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×622
×236
×18

question asked: 20 Jun '14, 09:14

question was seen: 3,416 times

last updated: 30 Apr '15, 17:01

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum