Changes between Version 4 and Version 5 of Ru:Help/RemoteControlCommands


Ignore:
Timestamp:
2017-11-21T08:24:59+01:00 (6 years ago)
Author:
ak099
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Ru:Help/RemoteControlCommands

    v4 v5  
    111111}}}
    112112где
    113 ||= **Параметр** =||= **Обязательные/необязательный** =||= **Значение** =||
     113||= **Параметр** =||= **Обязательный/необязательный** =||= **Значение** =||
    114114|| `objects` || О || Разделённый запятыми список ID объектов, например, "{{{n1234,n1235,w84,r958493}}}" ||
    115115|| `new_layer` || Н || Если '''true''', скачивает в новый слой ||
     
    142142=== {{{add_way}}} ===
    143143
    144 Instructs JOSM to create a new way with new way nodes at given coordinates.
    145 
    146 **Note**: This action requires the permission ''Create new objects'' which is disabled by default.
     144Указывает JOSM создать новую линию с точками, создаваемыми в заданных координатах.
     145
     146**Примечание**: это действие требует права ''Создать новые объекты'', которое не включено в настройках по умолчанию.
    147147
    148148{{{
     
    150150}}}
    151151where
    152 ||= **Parameter** =||= **Required/Optional** =||= **Meaning** =||
    153 || `way` || R || Pairs of latitude, longitude coordinates separated by semicolon. ||
    154 || `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]. ||
    155 
    156 ==== Example ====
     152||= **Параметр** =||= **Обязательный/необязательный** =||= **Значение** =||
     153|| `way` || О || Пары координат (широта, долгота), разделённые точками с запятой. ||
     154|| `addtags` с v1.5|| Н || Необязательный параметр для добавления тегов. Ключ и значение разделяются "=", а несколько тегов могут быть разделены вертикальной линией "|". См. [#addtags подробнее]. ||
     155
     156==== Пример ====
    157157
    158158http://localhost:8111/add_way?way=53.2,13.3;53.3,13.3;53.3,13.2
     
    160160
    161161=== {{{version}}} ===
    162 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.
     162Эта команда возвращает текущую версию протокола интерфейса удалённого управления. Разработчики могут использовать её для запроса, запущен ли экземпляр JOSM, а также для определения, доступна ли требуемая функциональность на клиенте.
     163
    163164{{{
    164165GET /version[?jsonp=callback]
    165166}}}
    166 where
    167 ||= **Parameter** =||= **Required/Optional** =||= **Meaning** =||
    168 || `jsonp` || O|| Jsonp callback for older browsers not implementing ​Cross-Origin Resource Sharing (CORS) ||
     167где
     168||= **Параметр** =||= **Обязательный/необязательный** =||= **Значение** =||
     169|| `jsonp` || Н|| обратный вызов Jsonp для старых браузеров, не поддерживающих ​Cross-Origin Resource Sharing (CORS) ||
    169170
    170171The 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.
    171172
    172 A typical output looks like this:
     173Типичный вывод выглядит так:
    173174{{{
    174175#!js
     
    241242
    242243
    243 === Adding, changing or deleting tags === #addtags
    244 Try this example
     244=== Добавление, изменение и удаление тегов === #addtags
     245Попробуйте этот пример
    245246[http://localhost:8111/load_and_zoom?addtags=wikipedia%3Ade=Weiße_Gasse%7Cmaxspeed=5&select=way23071688,way23076176,way23076177,&left=13.739727546842&right=13.740890970188&top=51.049987191025&bottom=51.048466954325].
    246247(Works also with the zoom-command)
    247248
    248 The user must review the tags and the selection before the tags are applied to the selected objects.
    249 If the tag exists on some objects, it will be can be replaced.
    250 
    251 Since protocol version 1.5
    252 - `add_node` and `add_way` commands support `addtags` parameter
    253 - It is possible to use `=` character in value and all leading/trailing spaces are trimmed.
    254 [http://localhost:8111/add_node?lon=13.3&lat=53.2&addtags=natural=tree%7Cname=%20%20%20==Great%20Oak==] (creates node with natural=tree an name="==Great Oak==")
    255 - If empty value is found, tag is to be deleted from objects (checkbox-confirmation is needed)
     249Пользователь должен проверить теги и выделение перед применением тегов к выделенным объектам.
     250Если у каких-нибудь объектов уже есть тег, он может быть заменён.
     251
     252С версии протокола 1.5
     253- команды `add_node` и `add_way` поддерживают параметр `addtags`
     254- можно использовать символ `=` в значении, и все пробелы в начале/конце будут обрезаны.
     255[http://localhost:8111/add_node?lon=13.3&lat=53.2&addtags=natural=tree%7Cname=%20%20%20==Great%20Oak==] (создаёт точку с natural=tree и name="==Great Oak==")
     256- Если найдено пустое значение, тег будет удалён из объектов (checkbox-confirmation is needed)
    256257[http://localhost:8111/load_and_zoom?addtags=wikipedia%3Ade=%7Cmaxspeed=&select=way23071688,way23076176,way23076177,&left=13.739727546842&right=13.740890970188&top=51.049987191025&bottom=51.048466954325].
    257258
    258 === Other commands ===
    259 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.
    260 
    261 Reverter plugin since version 27091 makes use of this feature.
     259=== Другие команды ===
     260Удалённое управление позволяет различным модулям добавлять дополнительные команды. 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.
     261
     262Модуль reverter с версии 27091 использует эту функцию.
    262263
    263264----
    264265
    265 Back to [[Help/Preferences/RemoteControl]][[br]]
    266 Back to [[Help/Preferences]][[br]]
    267 Back to [[Help]]
     266Назад к [[wiki:Ru:Help/Preferences/RemoteControl|Удалённое управление]][[br]]
     267Назад к [[wiki:Ru:Help/Preferences|Настройки]][[br]]
     268Назад к [[wiki:Ru:Help|Основной странице справки]]