Key:maxstay

From OpenStreetMap Wiki
Jump to navigation Jump to search
Public-images-osm logo.svg maxstay
Max stay cropped.png
Description
Maximum time you are allowed to stay somewhere. Show/edit corresponding data item.
Group: restrictions
Used on these elements
may be used on nodesmay be used on waysmay be used on areas (and multipolygon relations)should not be used on relations (except multipolygon relations)
Useful combination
Status: approvedPage for proposal

This key specifies the maximum duration for which it is permitted to:

  • Park your car (ex. disc parking)
  • Moor your boat
  • Stay at a campsite

Examples

Time conditional restrictions (also known as disc parking) can be tagged by using 'Time and date' condition:

  • maxstay:conditional=1 hour @ (08:00-18:00) (or maxstay=1 hour + maxstay:conditional=no @ (18:00-08:00), depending on whatever it is better for simple data consumers to show sometimes wrong "no maxstay" or sometimes wrong "1 hour maxstay")
  • amenity=parking + maxstay=1.5 hours + access:conditional=no @ (Su,PH). Maxstay is overruled by access conditions. In this case, parking is generally allowed for 90 minutes, but no parking on Sunday and public holidays.

Tagging

The general syntax of maxstay=* is as follows.

maxstay=<number> <time unit>

In some cases also additional tag using conditional restrictions is necessary to fully express value.

maxstay:conditional=<value> @ <condition>

Value

Number

This is the primary value. Only numeric values above zero and decimal points are valid, e.g., 45 minutes, 2.5 days, 1000 minutes.

Time unit

This component is required and there is no default. It specifies the unit of <number>. Valid units include: second, minute, hour, day, night, week, month, year, and their plural forms (when the number is above one, e.g., 1 day, 2 days, 5 hours).

The unit should not be abbreviated, and there should be a space between the number and the unit.

Condition

Main article: Conditional restrictions § Value

The value comprises of the @ character followed by the time and date condition.

maxstay = 0

Some mappers indicate a maxstay of 0. This might mean either of the following things:

  • No maximum is in effect. This can be indicated with maxstay=no | none | unlimited.
  • No maximum is posted, signed, or indicated. This can be tagged unambiguously with maxstay:signed=no (or unsigned=maxstay).
  • Staying is forbidden; only stopping is allowed. This can be indicated with maxstay=load-unload.
  • Access is not allowed; omit maxstay=*, and use access=no, possibly also with access:conditional=*.

See also