Relations
From OpenStreetMap
(Redirected from Relation)
| Other languages: | +/- |
|---|---|
Relations are a new type of object that has been introduced with the 0.5 API on 08 October, 2007.
From the data model's perspective, relations are basically groups of objects in which each object may take on a specific role. Relations may also have tags. This article is a starting point for discussion and, ultimately, documentation of current practice, much like the Map Features page is for tags.
Contents |
Established uses of Relations
| type | Comment | Photo |
|---|---|---|
| multipolygon | to put holes into areas (might have to be renamed, see article) | |
| restriction | any kind of turn restriction | |
| route | like bus routes, cycle routes and numbered highways |
Proposed uses of Relations
Composition and Sectioning of Ways and Tags
- Relations/Proposed/Composite Tag often used where an attribute is for time or vehicle class restricted
- Relations/Proposed/Segmented Tag is used if a tag or a set of tags shall be applied to a part (segment) of a way
- Relations/Proposed/Collected Ways for grouping ways into complete streets, rivers, railways etc.
- Relations/Proposed/Dual carriageways for grouping adjacent ways forming opposite carriageways of a dual carriageway
- Relations/Proposed/Boundaries for grouping boundaries and marking enclaves
Junctions, Intersections, Grade Separated Crossings
- Relations/Proposed/Junctions all the ways that make up a junction (such as a motorway intersection)
- Relations/Proposed/Bridges and Tunnels
Turn Restrictions, Right of Way
- Relations/Proposed/Right of way for defining right of way on junctions of roads of equal classification
- Relation:xrestriction -- extended turn restrictions
Area Hierarchies and other Relationships for Areas
- Relations/Proposed/Is In All the places that make up a bigger place (e.g. all the cities in a country)
- Relations/Proposed/Buildings for buildings where you want to record the outline, entrances, perimeter fence etc
- Relations/Proposed/Site For grouping buildings elements of a site together
- Relations/Proposed/Hint hint for renderers and/or API to support large areas
- Relations/Proposed/Label Manually placed labels or icons in areas
- Relations/Proposed/Country Gathering data about a country
Addressing
Others
- Relations/Proposed/Lane to provide additional information for a lane of a road (a bus lane, 2+car lane, cycle lane, cycle track etc)
- Relations/Proposed/Rivers For wide rivers where both banks are recorded.
- Relations/Proposed/Traffic Lights
(divided highway) ....
- Relations/Proposed/Campus mfor university, hospital, etc, campuses - to group all entities (buildings, paths, etc.)
- Relations/Proposed/Overtaking Describing safer overtaking sections.

