开放街图营业时间编辑器

OpenStreetMap 营业时间规范相当复杂,并不易于一个简单直观的使用者介面。

然而大部分的时候,你应该只会用到一小部分的定义。编辑器尝试在选单中隐藏更加难懂的功能,来达成这一点,大部分的时候减少“路上”设定,尽可能用预先设定的模版,加以小量修改。

本文档是早期文档,正在开发中

使用开放街图编辑器

在一般的工作流程中,你编辑的物件一般已经有开放时间的标签 (opening_hour、service_times 和 colllection_times),或是你可以重新设定物件的预设组合,用空白的开放时间栏位。如果你需要手动输入栏位,像是用 Vespucci,你可以在详情页面输入关键值,之后切换回栏位页签继续编辑。如果你相信开放时间标签必须多于预设组合的话,请在你的编辑器开启 issue。

If you have defined a default template (do this via the "Manage templates" menu item) it will be loaded automatically when the editor is started with an empty value. With the "Load template" function you can load any saved template and with the "Save template" menu you can save the current value as a template. You can define separate templates and defaults for specific key, for example "opening_hours", "collection_times" and "service_times" or custom values. Further you can limit applicability of a template to a region and a specific identifier, typically an OSM top-level tag (for example amenity=restaurant).

当然,您可以从头开始构建营业时间的值,但我们建议使用现有的模板之一作为开始。

如果已经有营业时间的数值则会载入,另外会自动修正以符合营业时间规范。如果无法修正,则会在大概的位置显示错误讯息,原始的营业时间数值,等待人工修正。开放街图资料库中有大约1/4的营业时间数值有问题,但只有少于10%的状况是无法修正。详见 OpeningHoursParser,并且看有那些允许的规范变体。

主菜单按键

规则

默认规则被添加为_normal_规则,这意味着它们将在同一天覆盖先前规则的值。在指定延长时间时中,可能会出现一个问题,通常您随后会希望通过_Show rule type_菜单项将规则切换为_additive_。

规则菜单

Time spans

To make editing time spans as easy as possible, we try to choose an optimal time range and granularity for the range bars when loading existing values. For new time spans the bars start at 6:00 (am) and have 15 minute increments, this can be changed via the menu.

Clicking (not on the pins) the time bar will open the large time picker, when using the bars directly is too difficult. The time pickers extend in to the next day, so they are a simple way to extend a time range without having to delete and re-add the the range.

Time span menu

Manage templates

The template management dialog allows you to add, edit and delete templates.

In Android 4.4 and later the following additional functionality is available from the menu button.

Save and edit template dialogs

The dialog allows you to set