< JOSM < Plugins

JOSM/Plugins/Scripting

Install the scripting plugin to run scripts in JOSM.

Use it to automate small tasks for which no dedicated plugin is available, i.e.

  • additional quality tests for which no validator test cases are available
  • automatically entering data in very specific situations (i.e. automatically entering a sequences of house numbers)
  • importing from a custom file format not supported by JOSM
  • exporting to a custom file format not supported by JOSM

The plugin includes a embedded scripting engine for Javascript based on Mozilla Rhino and a Javascript API for the JOSM application objects.

Alternatively, you can use any scripting language which provides a JSR-223 compatible scripting engine, in particular Groovy, Python, or Ruby.

Please refer to the documentation on GitHub for more information.

This article is issued from Openstreetmap. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.