Key:maxstay
| Description |
|---|
| The maximum time allowed to park, stay, moor, or camp at a location. |
| Group: restrictions |
| Used on these elements |
| Useful combination |
| Status: approved |
| Tools for this tag |
The key maxstay defines the maximum time a vehicle, boat, or person is allowed to stay in one place without leaving.
It is used to prevent people from staying too long and to make sure parking spaces, docks, and campsites stay available for new visitors:
- Motor vehicle parking: Parking lots, individual spaces, and street parking (such as disc-parking zones)
- Electric vehicle charging: Keeping
amenity=charging_stationspots free once a car finishes charging - Pick-up and drop-off: Short-term waiting at dedicated drop-off bays tagged with
kiss_ride=yesand airport passenger lanes - Camping and outdoor accommodation: Limiting how many nights in a row campers can stay at
tourism=camp_siteandtourism=caravan_sitelocations - Boating and waterways: Docks, service pontoons, and canal moorings tagged with
mooring=*
Values usually consist of a number followed by an English unit of time (such as 30 minutes, 2 hours, 1 day, or 3 nights). If there is no maximum stay limit, use maxstay=no or maxstay=unlimited. Both values mean the same thing. If time limits apply only on certain days or during specific hours, use maxstay:conditional, which is explained in #Parking limits active only at certain times.
Tagging
The tag specifies either a general limit or a conditional restriction:
- Unconditional:
maxstay=<restriction-value> - Conditional:
maxstay:conditional=<restriction-value> @ <condition>
Restriction values
The restriction value can be a standard duration or a special keyword.
Durations
Standard durations require a number above zero and a time unit:
- Number: Positive whole numbers or decimals, such as
45and1.5. Remember to use a period instead of a comma as the decimal separator. - Time unit: Required, because there is no default unit for
maxstay. Valid units includesecond,minute,hour,day,night,week,month,year, and their plural forms (such as30 minutes,2 hours,3 nights). Do not abbreviate units and always leave a space between the number and the unit. For example,30minbreaks both rules; use30 minutesinstead.
The special value no (unlimited stay)
The keyword no (along with synonyms none and unlimited) means that no maximum stay applies, i.e. you are allowed to stay as long as you want.
maxstay=nodoes not mean that parking is not allowed. If parking or staying is completely forbidden, do not usemaxstay=noormaxstay=0. Instead, leave outmaxstay=*and use an access or parking restriction tag, such asaccess:conditional=no @ (...)orrestriction:conditional=no_parking @ (...). Rules that forbid access always come before stay limits.
- Off-hour exceptions: Many apps do not understand complex opening hours. To help them show a safe fallback, set the daytime limit on the main tag, and use
noin the conditional tag to lift the limit at night or on weekends:maxstay=1 hourmaxstay:conditional=no @ (18:00-08:00)
maxstay=20 minutesmaxstay:conditional=no @ (Mo-Sa 19:00-08:00; Su)
Other keywords
load-unload: You are only allowed to stop or dock while actively loading or unloading people or goods (common for boat docks and delivery bays).
Conditions
- Main article: Conditional restrictions
Write conditions after the @ symbol:
- Time and date: Follows standard opening hours syntax. If the condition contains a semicolon (
;), wrap it inside round brackets:@ (Mo-Fr 08:00-18:00; Sa 08:00-16:00)@ (Mo-Sa 19:00-08:00; Su)
- User or vehicle class:
@ customer@ disabled
Examples
maxstay is used wherever people or vehicles are allowed to stay, but only for a limited time.
Basic parking (off-street and curbside)
- Individual parking space with a 30-minute limit:
amenity=parking_spacemaxstay=30 minutes
- Street parking on both sides with a 1-hour limit:
parking:both=laneparking:both:maxstay=1 hour
- Street parking on the right side with a 2-hour limit:
parking:right=laneparking:right:maxstay=2 hours
Parking limits active only at certain times
When time limits apply only during certain hours of the day (such as business hours or daytime disc-parking zones), add time and date conditions using the conditional restrictions syntax.
There are two ways to tag the same maximum stay restriction that is shown on the sign in the image (20-minute limit from Monday to Saturday between 08:00 and 19:00, but no limit at night or on Sundays):
- (Recommended) With both
maxstayandmaxstay:conditional: A 20-minute limit applies as the default, but the conditional tag further specifies that there is no maximum stay limit at night (Monday to Saturday 19:00-08:00) or on Sundays. Simpler apps that do not understandmaxstay:conditional=*will still understand the 20-minute limit in the basicmaxstay, preventing users from receiving parking fines:maxstay=20 minutesmaxstay:conditional=no @ (Mo-Sa 19:00-08:00; Su)
- With only
maxstay:conditional: This method says that a 20-minute limit applies strictly between 08:00 and 19:00 Monday to Saturday, and that there is no maximum stay limit at other times because it is not specified. Simpler apps that cannot understandmaxstay:conditional=*tags will not understand that there is a maximum stay limit and may assume parking is unrestricted at all times:maxstay:conditional=20 minutes @ (Mo-Sa 08:00-19:00)
When parking is forbidden at certain times
Rules that forbid parking always apply over maxstay. When parking is not allowed, any stay limit is ignored:
- Parking for 90 minutes, but closed on Sundays and public holidays:
amenity=parkingmaxstay=1.5 hoursaccess:conditional=no @ (Su,PH)
- Maximum stay of 2 hours during the day (08:00-18:00), unlimited parking in the evening (18:00-22:00), and not allowed at night (22:00-08:00):
amenity=parkingmaxstay=2 hoursmaxstay:conditional=no @ (18:00-22:00)access:conditional=no @ (22:00-08:00)
EV charging and drop-off zones
- Charging station with a 45-minute limit:
amenity=charging_stationmaxstay=45 minutes
- Charging station with a 3-hour limit during the day (08:00-20:00):
amenity=charging_stationmaxstay:conditional=3 hours @ (08:00-20:00)
Short-term passenger pick-up and drop-off (Kiss & Ride):
- Parking lot dedicated to drop-off with a 10-minute limit:
- Individual drop-off bay with a 5-minute limit:
amenity=parking_spacekiss_ride=yesmaxstay=5 minutes
- Curbside drop-off lane on the right with a 5-minute limit:
parking:right=street_sideparking:right:maxstay=5 minutes
Campsites and outdoor accommodation
Used to limit how many days or nights in a row visitors can stay:
- Caravan site with a 48-hour limit:
tourism=caravan_sitemaxstay=48 hours
- Caravan site with a 3-night limit:
tourism=caravan_sitemaxstay=3 nights
Waterways and boat moorings
Used along canals, rivers, and marinas to limit docking time:
- Boat mooring with a 2-hour limit (short stops to shop or refill fresh water):
See also
- Proposed features/Maximum Stay
duration=*expressed in ISO 8601 or RFC 5545 format- Street parking
