Editing Standards and Conventions

From OpenStreetMap Wiki
Jump to: navigation, search
Help
Available languages
Deutsch English Suomi Français Italiano 日本語 Русский Tiếng Việt ‪中文(繁體)‬
For basic information on how to edit, see Editing.

The following are some Standards and Conventions for editing the maps.

Contents

Tagging

You can assign tags ("keys" and "values") to any point (node), street (way), area (closed ways) or relations (containers of the previous ones). You can find a list of suggested tags on the Map Features page. It is recommended that you take a good look at that page and familiarise yourself with the tags which are most widely accepted (see Statistics) and recognized by most editors/maps. Note though that any keys and values are valid and may be employed in OpenStreetMap, and the Map Features page is subject to change, with proposals being voted upon or tags just became popular.

The Good practice page has a number of points concerning tagging. Make sure to visit FAQ for various useful hints, like how to use multiple values for a single tag.

Roads

A physical road, street, footpath, etc. is initially drawn as a series of nodes grouped together to form a way. The way should then be tagged with a highway=* tag and a name.

Many ways appear the same in most of the OSM editors, however, when rendered they will be displayed in different colours and widths based on the tag values entered.

Street Names

In the name=* tag, enter the full name as it appears on the street name signs. Use mixed case with the first letter of each word capitalised (for example, Church Street, not Church street). Do not abbreviate words. There is currently no table of standard abbreviations (St. could be Street or it could be Saint) and it has been decided that this is a rendering issue. i.e. the underlying data should have the full street name. This will allow a renderer to introduce abbreviations as necessary.

Watch out for apostrophes. The same rule applies. If the street sign has an apostrophe, the OSM data should have an apostrophe. There is no obvious consistency; the London Underground station Barons Court is adjacent to Earl's Court, one with an apostrophe, one without.

See also: Bilingual street names

Roads without names

Sometimes a road does not have a name (in the real world). That's fairly rare, but it sometimes happens. In this case, enter the highway=* tag, but not the name tag.

Often a road has a name, but you don't know what it is. This might be because you didn't write it down while you were out surveying. Maybe you used a camera but the picture came out blurry. Or maybe you are sketching over Aerial imagery. These kinds of roads should be drawn in as ways tagged with highway=road as per the guidelines on Yahoo! Aerial Imagery#How to sketch? ... however not everyone follows this, and "sketched" roads are often left untagged or given some other highway tag by a reasonable guess.

One way streets

If traffic can only travel down a road oneway then it is important to draw the way in the direction of travel and then add a oneway=yes.

Divided highways

A divided highway (also separated highway) is any highway where traffic flows are physically separated by a barrier (e.g., grass, concrete, steel), which prevents movements between said flows. While divided highways typically consist of two opposing traffic flows, such as with dual carriageways, they can also consist of three or more divided sections having a combination of same-direction and opposing flows, such as highways with "local" and "express" lanes (whereby entries to and exits from the highway are possible only from the former).

Divided highways should be drawn as separate ways. The ways will typically be oneway=yes, and should be tagged as such where appropriate. Ways connecting the divided ways should be drawn at locations where movements between the divided ways are possible, that is, where the physical separation is interrupted. Where the divided ways are parallel (often, but not always) their nodes should be positioned so that they are adjacent to each other. This creates a more pleasing aesthetic effect in renderers, especially on curves. It also preserves the information on their mutual separation distance along their whole length.

As with any ways, the spacing between is governed by the need to accurately represent curves (see below):

Wrong.
Right. Nodes aligned in pairs.

Roundabouts

See Roundabouts

Junctions

All road junctions should be drawn as a node with connecting paths. It is incorrect to add a node that appears to be on a path but is actually not connected (see QA). While this might look right, it will not define a valid path from one road to the other.

An incorrectly drawn road junction
A simple road junction

Bridges

Bridge ways are tagged bridge=yes and layer=1

A bridge is drawn as a separate way. This is one of many situations where a road is no longer represented as a single way, but as several ways arranged end-to-end, each with different tagging. The editors provide an easy way to split a way at a given node, for this purpose.

The highway and name tag should be applied throughout. The short way representing the bridge should additionally be tagged with bridge=yes and layer=x, where x is one more than the layer tag of the road underneath (or 1 if there is no layer tag on the road underneath).

Often the bridge will not connect directly to a junction. In which case you should add a piece of road connecting the two (see image):

Bridge near junction

See Key:bridge for details.

Tagging Areas

On some occasions the feature you wish to tag is not represented by a line (as is the case of a road, river, rail line etc), but by an area. For instance a wooded area, a park, or a lake are all Map features which are areas. Create a new closed way which represents the outline of the required area. Annotate this way with the required tagging from the map features page, such as natural=water (for a lake), landuse=forest (for a forest), or leisure=park (for a park), etc. There is no consensus yet on how to draw areas adjacent to ways. They may be drawn either by leaving a small gap between the area and the way or by sharing the boundary.

On highway=* taged areas, you have to add a area=yes tag, to imply that the road is not the outline, but the area within, too.

Accuracy

See main article: Accuracy

Accuracy is important during mapping. Remember, that when tracing roads — particularly winding, rural ones — you should add enough points to make each curve look like a curve. Of course, this is entirely subjective, as curves made entirely of lines will only ever approximate a "true" curve (which has an infinite number of nodes), and will always look like a series of lines when zoomed in past a certain point no matter how many nodes there are.

To generalize, though, sharp curves (those having a small radius) require many, closely-spaced nodes, while broad, long-radius curves can consist of fewer nodes having more distance between them. Without a hard-and-fast rule, it is best said to simply use good judgement and strive to seek a balance.

Small example using GPS traces

Below there is an example of a very roughly-traced rural 2-kilometer road. It's rather crude, particularly on the sharp curves. We would normally expect mappers to represent this kind of road with more nodes than that.

How it shouldn't be done

This is the same 2-kilometer road - but this will look much better on the map, and gives the map user a better sense of the curves of the road. You can see the road on the map. You can see, that other mapping services have a similar degree of accuracy.

How to do it

Note: Keep in mind that the road in the diagram below is about 2 km long. For very short roads you do not need to add that many nodes. If a road is perfectly straight then a node at either end is always sufficient, regardless of how long it is.

It's easy enough to "fix" these things i.e. enhance the detail of the road. Normally you should just add more nodes to the existing way. If you choose to delete and redraw a whole road, check that the nodes don't themselves have tags e.g. a highway=crossing node. Potlatch and JOSM] will highlight tagged nodes.

Dates

Dates should be in ISO 8601 format, i.e. YYYY-MM-DD. Where a numeric day of week is necessary, Monday=1, Sunday=0 or 7.


Miscellaneous

Topology



WARNING: OpenStreetMap is highly addictive For some people the process of mapping on OpenStreetMap is highly addictive. Take frequent breaks, there is a lot to be done.

Personal tools
Namespaces
Variants
Actions
site
Toolbox