User:MasiMaster/testdummy

From OpenStreetMap Wiki
Jump to: navigation, search

Dies ist eine private Testseite

Der Anspruch dieses Vorschlags ist es, dass JEDE Beschränkung einfach/übersichtlich kartiert werden kann!

Proposal_Page

| name=Another Restriction Proposal using Relations
| user=MasiMaster
| key=type
| value=restriction
| type= Relation
| definition=Using Relations for all not simple restriction
| status=Proposed
| draftStartDate=2012-08-10
| rfcStartDate=
| voteStartDate=
| voteEndDate=


Scheme of Restriction-Relation

Relation: type=restriction restriction=what_havs_been_restricted further_terms/conditions (which combined with AND)

Examples: highway=* with motorcycle=no from Mo-Fr 9:00-19:00 + mofa=yes mofa=yes belongs to the way (mofa is an element from motorcycle and has higher priority than motorcycle) type=restriction (type of relation) restriction=motorcycle (motorcycle is restricted) motorcycle=no (the specification of motorcycle restriction) time=Mo-Fr 9:00-19:00 (terms: if motorcycle & time=Mo-Fr 9:00-19:00 -> motorcycle=no)


highway=* with maxspeed=100, maxspeed=80 if wet, maxspeed=60 if vehicle=hgv maxspeed=100 belongs to the way (if no wet and no hgv, then the default-maxspeed is used) type=restriction (type of relation) restriction=maxspeed (maxspeed is restricted) maxspeed=80 (the specification of maxspeed restriction) wet=yes (terms: if wet=yes -> maxspeed=80)

Note: a second relation! type=restriction (type of relation) restriction=maxspeed (maxspeed is restricted) maxspeed=60 (the specification of maxspeed restriction) vehicle=hgv (terms: if vehicle=hgv -> maxspeed=60) [hgv=yes work also]


highway=* with hgv=no for minweigth=12t exept destination, only for oneway hgv=no belongs to the way type=restriction (type of relation) restriction=hgv (hgv is restricted) hgv=yes (the specification of hgv restriction) minweight=12 (terms: if hgv=destination & minweight=12 -> hgv=no) role: forwars/backward

highway=pedestrian with vehicle=delivery from 9:00-18:00 type=restriction (type of relation) restriction=vehicle (vehicle is restricted) vehicle=delivery (the specification of vehicle restriction) time=Mo-Su 9:00-18:00 (terms: if vehicle=delivery & time=Mo-Su 9:00-18:00 -> vehicle=yes)

Or same example: highway=pedestrian with vehicle=delivery from 9:00-18:00 type=restriction (type of relation) restriction=vehicle (vehicle is restricted) vehicle=yes (the specification of vehicle restriction) delivery=yes time=Mo-Su 9:00-18:00 (terms: if vehicle=yes & delivery=yes & time=Mo-Su 9:00-18:00 -> vehicle=yes)

Examples

Table is copied from Proposal:Conditional_restrictions and modified.

# Photo Node- or Way-Tags Relation-Tags Remarks
1 UK motor restriction sign with exceptions.jpg
Way for the road
highway=*
motor_vehicle=private;psv
Relation the road is member
type=restriction
restriction=motor_vehicle
motor_vehicle=yes
time=18:30-07:30

Note: inverse time-logic as sign!

  • A nice simple access condition to get things started. This is a camera-enforced "bus gate"; motor vehicles are prohibited from 07:30 to 18:30 except for PSVs. It's almost representable with the existing schema, however using hour_on=* and hour_off=* would also break the speed limit since they're deemed to affect that too.
  • times need to be switched around (against as they appear on the sign) if you want to use motor_vehicle=no as a fallback
2 UK no buses except local ones.jpg
Way for the section around the corner
highway=*
bus=yes (included in psv=yes)
tourist_bus=no

vehicle=private
psv=yes
bicycle=yes
Relation the road is member
type=restriction
restriction=tourist_bus
tourist_bus=yes
time=18:00-10:00
Relation the road is member
type=restriction
restriction=vehicle
vehicle=yes
time=18:30-07:30

Note: inverse time-logic as sign!

This totem pole warns of a restriction prohibiting big taxi-vans or buses between 10:00 and 18:00 further around the corner to the left. This is then lifted for local buses". The intent is to prevent tour buses of any size from driving through the centre of Oxford during peak hours.

The "no through road" restriction refers to a camera-controlled "bus gate" found around the corner to the left which the named vehicles can just go straight through without being fined.

3 Length and time restriction 2.jpg
Way for the road
highway=*
motor_vehicle=yes
Relation the road is member
type=restriction
restriction=motor_vehicle
motor_vehicle=no
time=10:00-18:00
minlenght=5

Note: Now correct time-logic, but inverse lenght-logic!

As mentioned above. In this case, most motor vehicles which might use it are short enough to be excluded, so it makes a better map to say "yes" for the general motor vehicle case.

motor_vehicle=yes may be omitted in this case because it is implied by the value of the highway tag. It is retained above for didactic reasons.

4 UK Complex Restriction Totem Pole.jpg
Way for the pedestrian zone
highway=pedestrian
motor_vehicle=disabled
bicycle=no
Node for the bollard
barrier=bollard
bollard=rising
motorcar=no
Relation the pedestrian zone is member
type=restriction
restriction=motor_vehicle
motor_vehicle=delivery
time=18:00-10:00
Relation the pedestrian zone is member
type=restriction
restriction=bicycle
bicycle=yes
time=18:00-10:00
Relation the bollard is member
type=restriction
restriction=motorcar
motorcar=yes
time=10:00-18:00

A complex example to chew on.

  • Pedestrianized area (no restrictions come from that though, beyond what's spelled out on the totem pole).
  • No motor vehicles
    • except those belonging to disabled persons displaying UK "blue badge scheme" badges in their windscreens,
    • except vehicles used for loading or unloading between 18:00 and 10:00
  • No riding of bicycles between 10:00 and 18:00.
  • No parking at any time, even if you remain in the vehicle. Doesn't apply to loading and unloading goods, and presumably disabled persons are OK too.
  • Some of the above is partially enforced by a rising bollard from 10:00 to 18:00.
5 Restrictionstotem02.jpg
Way for the road
highway=*
motor_vehicle=destination;private
residents=F
Way for the road
parking=no
parking:residents=F
Relation the road is member
type=restriction
restriction=motor_vehicle
motor_vehicle=yes
time=06:00-22:00
Relation the road is member
type=restriction
restriction=parking
parking=yes
time=19:00-09:00
  • The word "tontilleajoa" mean literally "into a lot", so if you drive there to park on the street, you're not driving into a lot; not all of these streets in the small area have any buildings lining them.
  • "Huoltoajo" (literally "service driving" is a legal concept here, which includes six different use cases, from "with enough small kids per adult passenger" to "a taxi when picking up or dropping of a customer".

The repeated hours on the sign mean they're valid for saturday and sunday, too, which allows shorter tag values.

6 Restrictionstotem01.jpg
Way for the road
highway=*
maxspeed=30
source:maxspeed=FI:zone30
maxlength=12
maxlength:bus=none
maxlength:private=none
hazmat:A=yes
hazmat:B=no
Relation the road is member
type=restriction
restriction=hazmat:A
hazmat:A=no
time=Mo-Fr 07:00-09:00, Mo-Fr 15:00-18:00
  • "With special permit" seems overkill, those with the permit (no idea who they are) already know they can enter.
  • The "B (VAK)" is a category of hazmat transports with larger amounts and/or more dangerous materials; at peak hours, no hazmats allowed, at other times, small transports are free to go, and bigger loads only to their destination. These A and B groups are sometimes used without time limits, so the tags hazmat:A and hazmat:B are "in use" and moving that to the condition seems unnecessary.
7 Verbotskomplex R7308805 OSM.jpg
Way for the road
highway=*
maxlength=10
maxspeed=50
source:maxspeed=sign
Relation the road is member
type=restriction
restriction=maxlength
maxlength=none
vehicle=psv;destination;agricultural;forestry
  • both agriculture and forestry are used as 'Use Type', not vehicle type and therefore end up in the value, not in the key (A farmer can also use this exception in his normal car, not only with his tractor).
  • I found no good value for 'Linienverkehr', which means vehicles on fixed and reoccurring routes. Yes, this is mostly public transportation buses on a schedule, but the definition says it can also be transportation of goods and the 'psv' tag doesn't specify the fixed and reoccurring nature of the route.
8 Road sign maximum weight 3t except agricultural traffic.jpg

translation: except agricultural traffic and "Wasserverband" (=an association) vehicles

Way for the road
highway=*
name=Holzfeldgasse
maxweight=3
maxspeed=30
source:maxspeed=sign
Relation the road is member
type=restriction
restriction=maxweight
maxweight=none
vehicle=agricultural;private
  • Exception is valid for agricultural traffic, not agricultural vehicles, thus maxweight:agricultural = none would be incorrect
  • Value none is not an 'officially' described value yet, but according to taginfo already in use for such cases (especially maxspeed)
  • Exception for "Wasserverband" vehicles cannot be tagged yet (similar to other exceptions for special groups, associations or companies - or permits like "A38")
9 Speed limit of 60 for HGV with weight more than 7.5t.jpg
Way for the road
highway=*
maxspeed=80
source:maxspeed=sign
Relation the road is member
type=restriction
restriction=maxspeed
maxspeed=60
source:maxspeed=sign
minweight=7.5

Simple example for a conditional speed limit on a motorway, which cannot be tagged with current access and restriction tags.

Syntax/Befehle

Vorlagenprogrammierung