Key:maxstay
![]() |
![]() |
Description |
---|
Maximum time you are allowed to stay somewhere. ![]() |
Group: restrictions |
Used on these elements |
Useful combination |
Status: approved![]() |
Tools for this tag |
|
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
amenity=parking
+maxstay=30 minutes
amenity=parking
+maxstay=1 hour
amenity=parking
+maxstay=2.5 hours
parking:right=*
+parking:right:maxstay=2 hours
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)
(ormaxstay=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
(orunsigned=maxstay
). - Staying is forbidden; only stopping is allowed. This can be indicated with
maxstay=load-unload
. - Access is not allowed; omit
maxstay=*
, and useaccess=no
, possibly also withaccess:conditional=*
.
See also
- Proposed features/Maximum Stay
duration=*
expressed in ISO 8601 or RFC 5545 format- Street parking