JOSM/Plugins/OpeningHoursEditor

From OpenStreetMap Wiki
Jump to: navigation, search
Help
Available languages
English

OpeningHoursEditor is a plugin for JOSM. It provides a graphical editor for editing opening_hours. It can also be used to edit other time related tags like collection_times for postboxes or lit for highways. At the moment the plugin is still in development. The main development is made by User:Boman.

Contents

Installation

menuentry of the plugin
dialog of the plugin

For installation see JOSM/Plugins#With_the_plugin_manager. After restarting JOSM you should have a new menu-entry under 'tools' called 'edit opening_hours'.

Usage

Select one or more Elements and press 'tools'->'edit opening_hours'. Select the key you want to edit. The key with the best matching is already selected, so you can press enter if you agree. Otherwise you have the possibility to choose one of the existing tags or to create a new tag.

Now the OpeningsHourEditor dialog will open and you can edit your chosen key. The value with the most occurrences is already inserted in the value field. You can drag the mouse inside the time-planner to create a rectangle. You can move and resize the rectangles by dragging with the mouse at the borders of the rectangle. By clicking right on a rectangle you can choose 'open end' the color of the rectangle becomes red. You can also create a single time-point (for example: Mo-Fr 09:15) by setting the height of the rectangle to 0, the color of the rectangle will change to green.

You can also delete a rectangle by changing its width or height to 0 or less.

Bugs

Report bugs and feature wishes via the JOSM-trac and set the Component of the ticket to "Plugin openinghourseditor".

Development

Source code can be found in svn.

Revision History

A list of major updates to the plugin.

Date Version Changes
2011-10-12 26838 bugfix #6927 for Windows popup-menu and enhancement ticket #6927 for remembering the latest editmode
2011-06-31 26219 Choosing between 12 and 24 hour clock possible. The default is selected by the configured localization. See enhancement ticket #6359
2011-05-16 26002 added the possibility to edit more than one object simultaneous
2011-01-31 25190 minimal JOSM version set to 3835, due to changes in JOSM
2010-11-17 24290 Fixes Ticket #5554

Schema

The plugin is reading the value from the tag and parse it for showing the times in the GUI. This is the Grammar which is used for parsing:

DIGIT ::= "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
WEEKDAY ::= "Mo" | "Tu" | "We" | "Th" | "Fr" | "Sa" | "Su"
PLUS ::= "+"
OFF ::= "off"

startCompile ::= "24/7" | timespanlist
timespanlist ::= timespan [ "; " timespanlist ]
timespan ::= [ dayspanlist " " ] daytimespanlist

daytimespanlist ::=	daytimespan [ "," daytimespanlist ]
daytimespan ::= off | ( daytime ( openend |  [ "-" daytime ]) )
daytime ::=	(DIGIT DIGIT ":" DIGIT DIGIT )
openend ::= PLUS
off ::= OFF

dayspanlist ::=	dayspan [ "," dayspanlist ]
dayspan ::=	WEEKDAY [ "-" WEEKDAY ]

See also

http://www.netzwolf.info/kartografie/osm/opening_hours (German)

Personal tools
Namespaces
Variants
Actions
site
Toolbox