On Fri, Aug 7, 2009 at 3:12 PM, John Smith<delta_foxt...@yahoo.com> wrote:
> maxspeed:school_zone=hh:mm-hh:mm[,hh:mm-hh:mm];speed
> This explains what the restriction is, school zone, the times it is in effect 
> and the reduced speed all in one line.

That is much better than the current proposal IMHO, good job. Just to
demonstrate, the example in that format is:
maxspeed:school_zone=08:30-09:30,14:30-15:30;40

> school zones are a corner case and I don't think you should try to shoe horn 
> them into a general time restriction since they don't operate during school 
> holidays.

Yeah I know what you mean. The options are either 1) have two kinds of
restrictions (time and school_zone) or 2) extend the time syntax to
include "school_day" as well as the usual "day" identifiers (Mo, Tu,
We, etc.). You are suggesting that the first is better, which is
subjective.

By the way, the outcome of this discussion could well be applicable to
http://wiki.openstreetmap.org/wiki/Proposed_features/Extended_conditions_for_access_tags

i.e., what we have so far for school_zone could be generalised to:

<X>:<K> = <L>;<V>, where
X = the standard tag (maxspeed, or access, or bicycle, etc.)
K = the kind of limits of applicability
L = the limits of applicability (in an appropriate format according to K)
V = the value of the limit (e.g. yes/no, speed in kmph, etc.)

So you would have, for the examples at
http://wiki.openstreetmap.org/wiki/Proposed_features/Extended_conditions_for_access_tags

maxspeed = 100
maxspeed:school_zone = 08:30-09:30,14:30-15:30;40
maxspeed:vehicle = hgv;60
maxspeed:weather = wet;80
bicycle:time = 10:00-18:00;no
access:weight = >5.5;destination
maxspeed:vehicle = hgv;120
maxspeed:vehicle:time = hgv;Sa,Su;80

In the last example, the format is extended to:
<X>:<K1>:<K2> = <L1>;<L2>;<V>
which seems fine.

But there is an obvious problem: you may want two values for the same key, e.g.
maxspeed:weather = wet;80 and
maxspeed:weather = snow;30

I'm guessing this is not OK? Actually......... won't this often be a
problem if you insist on not putting values in the key? How would you
say maxspeed is 40 between 7am-9am, 60 between 4pm-7pm, and 80
otherwise?

_______________________________________________
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk

Reply via email to