Opened 6 days ago
Last modified 6 days ago
#24298 new enhancement
Add the ability to know the OSM server via Remote Control
Reported by: | TrickyFoxy | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 25.05 |
Component: | Core remotecontrol | Version: | |
Keywords: | Cc: |
Description (last modified by )
I added an osm_server_url
field to the /version
command response with the user's current OSM server.
{ "protocolversion": { "major": 1, "minor": 13 }, "application": "JOSM RemoteControl", "version": 19402, "osm_server_url": "https://api.openstreetmap.org/api" }
I am writing an extension that makes heavy use of Remote Control in JOSM. For example, to revert changesets or open objects in JOSM. The extension supports working with the API sandbox, but the user may forget to change the OSM server in the settings. [1] In the best case, an error will occur, in the worst case, you will corrupt the user's layer or, even worse, he will not notice this and send the changes to the server.
Therefore, I propose to give external tools the ability to check the current OSM server. Since most users do not change this setting, I do not see any risk of disclosing private information.
Patch note: I replaced the static field with a static method because the OSM server can be modified while JOSM is running.
Attachments (1)
Change History (3)
by , 6 days ago
Attachment: | Add_the_ability_to_know_the_OSM_server_via_Remote_Control.patch added |
---|
comment:1 by , 6 days ago
Description: | modified (diff) |
---|
comment:2 by , 6 days ago
Milestone: | → 25.05 |
---|