Relation:golf

From OpenStreetMap Wiki
(Redirected from Tag:type=golf)
Jump to navigation Jump to search
type = golf
Description
A type of relation used for golf specific mapping.
Used on these elements
should not be used on nodesshould not be used on waysshould not be used on areasmay be used on relations
Requires
Useful combination

For courses:

For tee marker relations:

Status: proposed

A relation for multiple golf related elements as members. Often that is a course consisting of golf=hole in sequence. This can be especially useful to distinguishing multiple courses at the same facility/club.

Can also be used to better tie golf=tee together and into a relation to better represent per tee marker data. This data can be used to route from a previous green as a course guide and to discern what tees belong to a specific course by putting the course relation as a member to the tee marker relation.

How to map

Courses:

Courses are mapped in relations relation of type type=golf. The relation should contain golf:course:name=* tag to be considered a course.

This course relation can then mapped with the following tags:

Other Key:golf elements can also be added as members to relate them to a specific course.

Tee Markers:

Put all of the golf=tee as members to a relation of type=golf. If a golf=tee areas consists of multiple tee colors/numbers, just include it into multiple relations.

You can then attach per tee information to this tee marker relation as:

The relation should contain a tee=* tag to be considered a Tee marker relation.

You should also put this relation as a member to the course relation to tie these tees to a course.

Roles

Elements will be added with an empty role in order of the holes, the order of the holes can also be verified by the consumer of the data of the ref=* on the golf=hole way way

Examples:

Courses:

Tee markers:

Why

If one tags multiple golf:course=*, golf:course:name=* and golf:par=* etc on one leisure=golf_course it is imposible for data consumers to assign what golf=hole with the ref=* goes to what course. Even if a facility only have one course, it is hard for a data consumer and a computational expensive spatial query "what course does this hole lie inside of?" is needed instead of having the data directly tied to a golf=hole.

Using type=golf also have the benefit in that you do not need to duplicate data on alla golf=hole - making updates easier and you could also include other features as members, for example golf=out_of_bounds for the course relation.

Alternative tagging

One could also put all the course-specific tags on golf=hole, but then you lose the ability to describe the course itself with additional tags. With type=golf you have a relation object to put tags on to describe the course itself.

Courses which consists of different "loops" for each day

See golf:loop=*

See also