Changes between Version 5 and Version 6 of Help/Preferences/RemoteControl
- Timestamp:
- 2012-01-23T15:59:53+01:00 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Preferences/RemoteControl
v5 v6 41 41 ==== Example ==== 42 42 43 Start JOSM (don't forget to enable the RemoteControl feature), then click on: 43 Start JOSM (don't forget to enable the !RemoteControl feature), then click on: 44 44 45 45 [http://127.0.0.1:8111/load_and_zoom?left=8.19&right=8.20&top=48.605&bottom=48.590&select=node413602999] … … 61 61 }}} 62 62 === {{{version}}} === 63 This command returns the current protocol version of the installed JOSMRemoteControlplugin. Developers can use it to query for a running instance of JOSM and also determine whether the requested functionality is available in the client.63 This command returns the current protocol version of the installed !RemoteControl interface. Developers can use it to query for a running instance of JOSM and also determine whether the requested functionality is available in the client. 64 64 {{{ 65 65 GET /version[?jsonp=callback] 66 66 }}} 67 67 68 The command returns a json object containing an application identifier that is always "JOSM RemoteControl", a major number and a minor number. Compatible protocol changes result in an increase of the minor number. Incompatible changes increase the major number. So a client application knowing of protocol version 1.0 can still talk to JOSM having 1.1. But it's not guaranteed to be working with 2.0. So the client should verify the major number. 68 The command returns a json object containing an application identifier that is always "JOSM !RemoteControl", a major number and a minor number. Compatible protocol changes result in an increase of the minor number. Incompatible changes increase the major number. So a client application knowing of protocol version 1.0 can still talk to JOSM having 1.1. But it's not guaranteed to be working with 2.0. So the client should verify the major number. 69 69 70 70 A typical output looks like this: … … 137 137 } 138 138 }}} 139 === other commands === 139 140 === Other commands === 140 141 Remotecontrol allows other plugins to add additional commands. The other registers a RequestHandler class and specifies a command to be handled by this class. The command syntax has to be defined by the other plugin. 141 142 142 143 Reverter plugin since 27091 makes use of this feature. 143 144 144 == See also = 145 == See also == 145 146 [http://wiki.openstreetmap.org/wiki/JOSM/Plugins/RemoteControl Old JOSM Remote-Plugin page at OSM wiki] 146 147