Changes between Version 13 and Version 14 of Help/Preferences/RemoteControl


Ignore:
Timestamp:
2013-02-12T17:19:55+01:00 (13 years ago)
Author:
akks
Comment:

remote protocol 1.5

Legend:

Unmodified
Added
Removed
Modified
  • Help/Preferences/RemoteControl

    v13 v14  
    3737|| `top` || R || maximum latitude ||
    3838|| `select` || O || comma-separated list of objects that should be selected. Object specifiers are combinations of the words "way", "node", or "relation", and the numerical object id. Example: {{{select=way38473,node12399,node54646}}} ||
    39 || `addtags` || O || Optional parameter to add tags. The key and value is separated by "=" and multiple tags can be separated by a Pipe "|". Try this one for [http://localhost:8111/load_and_zoom?addtags=wikipedia:de=Wei%C3%9Fe_Gasse|maxspeed=5&select=way23071688,way23076176,way23076177,&left=13.739727546842&right=13.740890970188&top=51.049987191025&bottom=51.048466954325 example]. Works also with the zoom-command. The user must review the tags and the selection before the tags are applied to the selected objects. ||
     39|| `addtags` || O || Optional parameter to add tags. The key and value is separated by "=" and multiple tags can be separated by a Pipe "|". See [#addtags details]. ||
    4040|| `new_layer` || O || If true, downloads to a new layer ||
    4141
     
    9595|| `objects` || R || Comma separated list of object ids, e.g. "{{{n1234,n1235,w84,r958493}}}" ||
    9696|| `new_layer` || O || If true, downloads to a new layer ||
     97|| `addtags` || O || Optional parameter to add tags. The key and value is separated by "=" and multiple tags can be separated by a Pipe "|". See [#addtags details]. ||
    9798
    9899==== Example ====
     
    113114|| `lon` || R || The longitude of the node ||
    114115|| `lat` || R || The latitude of the node ||
     116|| `addtags` since v1.5|| O || Optional parameter to add tags. The key and value is separated by "=" and multiple tags can be separated by a Pipe "|". See [#addtags details]. ||
    115117
    116118==== Example ====
     
    129131||= **Parameter** =||= **Required/Optional** =||= **Meaning** =||
    130132|| `way` || R || Pairs of latitude, longitude coordinates separated by semicolon. ||
     133|| `addtags` since v1.5|| O || Optional parameter to add tags. The key and value is separated by "=" and multiple tags can be separated by a Pipe "|". See [#addtags details]. ||
    131134
    132135==== Example ====
     
    213216}}}
    214217
     218
     219=== Adding, changing or deleting tags ===
     220 Try this example:
     221[http://localhost:8111/load_and_zoom?addtags=wikipedia:de=Wei%C3%9Fe_Gasse|maxspeed=5&select=way23071688,way23076176,way23076177,&left=13.739727546842&right=13.740890970188&top=51.049987191025&bottom=51.048466954325].
     222
     223Since protocol version 1.5
     224- there is possible to use `=` character in value and all leading/trailing spaces are trimmed.
     225[http://localhost:8111/add_node?lon=13.3&lat=53.2&addtags=natural=tree|name=%20%20%20==Great%20Oak==] (creates node with natural=tree an name="==Great Oak==")
     226- if empty value is found, tag is to be deleted from objects
     227[http://localhost:8111/load_and_zoom?addtags=wikipedia:de=|maxspeed=&select=way23071688,way23076176,way23076177,&left=13.739727546842&right=13.740890970188&top=51.049987191025&bottom=51.048466954325].
     228
     229(Works also with the zoom-command)
     230
     231The user must review the tags and the selection before the tags are applied to the selected objects.
     232
    215233=== Other commands ===
    216234Remotecontrol 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.