User:Driver2/Test
Properties for Tags
Properties for Tags allow you to specify additional characteristics to existing key=value combinations. This is not meant for properties that should apply to the tagged item (street etc.) itself, but only a single tag. See the examples below.
Syntax
Properties are seperated from the Tag by a single '.' (point).
key=value
key.property=value
Possible Properties
- All properties that are applicable for the given key
- only: The key is only true, if the following key=value combination applies (e.g. time)
- except: The key is not true, if the following key=value combination applies (e.g. time)
Examples
A residential street with a weight restriction of 2 tons, but only for people who don't live there:
highway=residential
maxweight=2
maxweight.except.access=destination
A tertiary highway with a 2m wide footway on both sides, but the left one grows grass
highway=tertiary
footway=both
footway.width=2
footway.left.surface=grass
A parking area with with a fee, but only during the given time:
amenity=parking
fee=yes
fee.only.time=Mo-Fr 07:00-19:00;Sa 07:00-13:00
A parking area that allows only short term parking, but only during the given time (time specified as in opening_hours=*
):
amenity=parking
maxstay=2 hours
maxstay.only.time=Mo-Fr 08:00-18:00
Secondary with a cycleway on both sides, while the cycleway on the left side is on the street and the cycleway on the right side is on a seperate track:
highway=secondary
cycleway=both
cycleway.left=lane
cycleway.right=track
One-Way Residential Street that is closed for foreign traffic once a week (e.g. marketplace):
highway=residential
oneway=yes
access=destination
access.only.time=We 07:00-18:00
Refering to different possible values for a single key by number
Instead of defining the value for a key, a # (hash) followed by two or more comma-seperated numbers is given. Those numbers can be used in conjunction with a # sign in keys to reference one possible value for this tag. Could probably be done better, just an idea.
Examples
A one-way street, with two possible values, depending on the time:
highway=residential
oneway=#1,2
oneway#1=yes
oneway#2=-1
oneway#1.only=Mo-So 08:00-18:00
oneway#2.only=Mo-So 18:00-00:00;Mo-So 00:00-08:00