OSM Lane tool is simple website designed to help OpenStreetMap contributors to add various lane-specific tags for highways and other streets, specifically turning lane arrows (where you are allowed to turn) and various destination tags (where will road lead). While OSM uses relatively simple and straightforward
syntax to add such tags, tag values themselves could grow very lenghty and difficult understand for humans. This tool was created in January 2021 and was originally meant to make management of multi-lane road tagging easier for contributors who primarly use iD and don't wish to switch to Josm.
How to map
Only special caveat not covered by wiki nor this tool is to make sure, what kind of ref-number formatting your area uses. For example European routes are written with space between E and road number (e.g "E 123").
How to use tool
Most of features provided by this tool are listed as buttons below and explained by tooltips at most buttons. To see tooltip, just hover your mouse over a button to read explanation.
Menu buttons meanings
Add lane - Adds a new lane with no extra tags by default.
Export (as :X) - Converts lanes to OSM-compatible tags. As :X text indicates if key suffix has been set.
Import (overwrite) - Converts tags pasted into textbox below to lanes used by this interactive tool. Asks confirmation to overwrite existing lanes.
Importing does not currently support :forward/:backward suffixes.
Import (extend) - Also converts tags pasted into textbox to lanes, but new lanes are appended to the right, not overwriting old lanes. Useful when exit ramp already has destination tags, but you wish to add tags to previous road section.
Switch forward/backward - Switches between 3 possible suffixes of exported tags: :forward, :backward or no suffix at all. Current suffix is listed on export button.
Switch to LHT/RHT - Purely cosmetic functionality requested by Australian users. Switches positions of Reverse & None checkboxes and swaps picture used to illustrate U-turn option. This button has absolutely no effect on export or how new lanes are added.
Consolidate imported ref-tags - Used for configuring import settings. Unchecking this checkbox will import each ref and int_ref tag value as separate value on individual line.
Keeping it checked loads destination:ref and destination:int_ref keys as single lines (just like it's stored in OSM).
Lane buttons meanings
Copy lane - Usually does what it says. Adds new lane next to selected one while also carrying over settings selected on current lane.
Unusually there may occur bug. When user holds button pressed for too long, lane dragging functionality is triggered parallel to copying action. New lane will appear as shadow hovering in odd place. Workaround is to try to click deletion button.
Delete lane - Does what it says. Deletes a lane.
Allow lane change? - Button with slightly confusing title is used to determine if changing lanes is allowed between this current lane and lane on the right. Button is hidden when current lane is the rightmost lane.
3 coloured squares are used to make button's state more noticable. Clicking on the button will cycle through these 3 states.
🟧 - Lane change undefined (none)
🟥 - Lane change not allowed (no)
🟩 - Lane change allowed (yes)
Known issue: Due to limitation of UI chosen for this tool, single button is regulating lane changes from left to right and from right to left. This means some situations, where changing lanes is allowed only in one direction, can not be created with this software. Workaround is to manualy alter these lanes after exporting.
❌ - deletes selected row/field from lane. Button is hidden from field, which allows adding new rows.
Non-buttoned functionality / Tips & tricks
Selecting type of destination before typing it's name keeps destination type selected while adding new field.
Click and hold ░░ to drag fields. Fields can be dragged across lanes.
Best way to drag lanes is to click and hold lane arrow.
Symbol field has auto-complete feature. 53 most common values are shown when at least two characters are typed to textbox. Suggestions are listed in order of popularity.
Turn arrow "None" is default choice even when no checkboxes are checked. Use checkbox None if you wish to remove all current arrows from a lane. Selecting any other checkbox unchecks None
Need a custom key?
In far future this tool may get custom keys support for more specialized users who may need more than these 5 currently provided.
See supported values for destination:symbol tag from wiki, Taginfo or just use autocomplete.
Warning this website may contain definitely contains bugs.
This tool is open-source. To view source, right-click and select "View page source" or visit github page.
Destination fields and lanes are now draggable. Best used with mouse.
Known bugs, wishlist and changelog:
Copying lane destinations along with lanes
First row of destinations can't be deleted, but shows button
This webpage is utterly useless as there's no export functionality
Formatting support for changelog
New lane destination field is created only on-click (not on-input).
Changelog too long, moved to hidden section.
Relocated hosting to github. Added dynamic warning when visiting old site.
Adding new destination field preservers key.
Add lane changing tags. Todo for that: Update export function.
First lane is automatically added when page loads.
Bug caused duplicate tagging when lane was copied because of duplicate IDs, when new elements were generated too quickly.
Added colored indicators for lane changing.
Added none to empty destination lanes.
Change:lanes=|, when using 1-lane road.
Draggable destination fields
Add custom UI for LHT (steering wheel on right side) roads.
Import capability needed
Draggable lanes
:lanes can be omitted, if all lanes have same value
turn:lanes shouldn't be shortened
Option to export with suffixes
Autocomplete for symbol input
Add more organized help page
Different lanes should be aligned. Potential workaround by aligning to bottom.
Forward-backward lanes. !!! Only oneway is supported for now. !!!
Pressing enter could move cursor to new field
Option to import with suffixes
Exporting single lane with suffix loses turn:lanes
Css styling should use classes
Auto-updating export box would be cool.
Destination field shouldn't be draggable to last position. - Fix made things worse
...and many more
Templates for js to generate new lanes.
Please avoid touching tables below as they are used to generate new lanes.