Key:website

From OpenStreetMap Wiki
Jump to navigation Jump to search
Public-images-osm logo.svg website
Vista-www.png
Description
Specifying the link to the official website for a feature Edit or translate this description.
Group: Annotations
Used on these elements
may be used on nodesmay be used on waysmay be used on areasmay be used on relations
Useful combination
See also
Status: de factoPage for proposal

The website=* tag can be used to provide the full URL to the official website for the related features, be it a building, park railway or anything else.

For small format websites (designed for smaller displays, reduced bandwidth, or mobile touchscreens) one may in addition add website:mobile=*.

Format

Websites URL usually follow this syntax:

http(s)://(www.)domain.tld/(page)(?parameters)(#anchor), where parts in parenthesis may be optional.

Example

https://www.openstreetmap.org/help would be a good website URL. Its format is valid, it's a direct link to the wanted resource and a trustworthy website.

Best practices

Durability and machine-readability

  • Use as short a URL as possible. Choose simple URLs over complex URLs if they basically point to the same content. For example, use https://bahn.de/ instead of https://www.bahn.de/p/view/index.shtml, as both will get you to the front page. Websites are frequently redesigned, so strive for the most "robust" URL that works.
  • Include the scheme (http or https) explicitly. https://www.openstreetmap.org/, not www.openstreetmap.org/
  • Take care when copying links from a search engine result. Search results URLs hide information about the final destination of the link, and are not meant for permanent linking. A very bad example would be https ://encrypted.google.​com/url?sa=t&rct=j&q=&esrc=s...
  • Prefer websites at domain names. URLs containing IP addresses tend to get outdated more quickly than URLs at domain names and are far less recognisable. This Sophox query finds websites at IPv4 addresses.

Usability

  • If the official website is available in multiple languages depending on the URL, link to the version in the locally appropriate language or the language-neutral version. (Some websites automatically redirect to the user's language if you omit a language code from the URL.)
  • website=* is not for every URL. Use wikipedia=* for Wikipedia articles. Social media profiles should be tagged using contact=* keys: contact:mastodon=*, contact:facebook=*, contact:twitter=*, etc. If a social media web presence is the only web presence of the POI (point-of-interest), then some taggers prefer to also list the url using website=* to indicate that no other official website exists. (Do not use bulk edits to "deduplicate" website and contact tags)

Privacy and security

Namespace values

Suffixed

An excerpt of some most used tags:

LOADING TAG LIST... (If you do not see this tag list, you need to enable Javascript)

This table is auto-generated. See Taginfo/Taglists for a documentation on it.

Prefixed

This table lists out documented keys only. They represent some known usage as seen in the wild.

Key Value Element Comment Statistics
website:stock URL node way area Used to link to URL with "live" stock information of e.g. a shop or pharmacy
website:map URL node way area Used to link to external maps e.g. in route relations.
website:booking URL node way area Used to link to booking website.
user defined URL node way area All commonly used values according to Taginfo.

For example as discussed in Talk:Key:booking, booking=* in website:booking=* is incomptaible with the common reservation=*, and may even be confused as Booking.com related as seen from the 12 contact:booking=* instances existing on 2021-08-01.

They may be contrasted with these alternatives:

LOADING TAG LIST... (If you do not see this tag list, you need to enable Javascript)

This table is auto-generated. See Taginfo/Taglists for a documentation on it.

Other keys

*:url=* is commonly seen in source:url=* and source_ref:url=*. opening_hours:url=* and inscription:url=* were documented to be used.

References

See also

References