On Tue, Nov 10, 2015 at 7:36 AM, Nicolás Alvarez <nicolas.alva...@gmail.com>
wrote:

>
> El 10 nov 2015, a las 09:57, Badita Florin <baditaflo...@gmail.com>
> escribió:
>
> Hello, i have a question, how do you tag the opening hours for a turn
> restriction that is activated only during a certain time of day or week.
> Also, do you have an idea what software is using this attributies ?
>
> http://i.imgur.com/a1eBFoe.jpg
>
> On the wiki the information is old and also deprecated
>
> http://wiki.openstreetmap.org/wiki/Relation:restriction
>
> It says about hour_on but on the wiki the tag is not valid.
>
> http://wiki.openstreetmap.org/wiki/Key:hour_on
>
> Should i use the http://wiki.openstreetmap.org/wiki/Key:opening_hours
> tag, as recomented ?
>
> My fear is that i will add a restriction, and all of the apps that does
> not parse the opening hours will use this as a default , and will make this
> restriction permanent, producing maybe more damage then not adding the
> restriction at all
>
>
> I don't know what the correct tag is, and the wiki is inconsistent about
> it. It says hour_on is deprecated in favor of opening_hours and conditional
> restrictions, but the Conditional restrictions page says nothing about turn
> restrictions, and the turn restrictions page says you should use hour_on...
>

I interpreted that as the format is identical to opening_hours=*, but it's
implied that there's a different tag for effective hours, without
mentioning what that tag is.  Indeed hour_on=*, *et. al.* were deprecated
as being ambiguous for all but the simplest use cases (which is also why
opening_hours=* was created for POIs).  I'd be willing to go with
effective_hours=*, using the same format as opening_hours=* if that sounds
alright, and update the relevant pages as appropriate.  The hours in
question would represent the the time frame in which the restriction
applies.

For example, 36th and Harvard in Tulsa:
http://www.mapillary.com/map/im/thEPKkBiTOgqG3GwEoUieA/photo
The sign reads "No left turn Mon-Sat 7AM-7PM".

type=restriction
restriction=no_left_turn
effective_hours=Mo-Sa 07:00-19:00

A more complex example can be found at 11th and Denver:
http://www.mapillary.com/map/im/iSaY1yIcDNfkt8lCfeaoOA/photo  The sign
reads "no left turn 7:30-8:30AM, 4:15-5:30PM except MTTA busses".

type=restriction
restriction=no_left_turn
effective_hours=7:30-8:30,16:15-17:30
except=bus
except:operator=Metropolitan Tulsa Transit Authority

Granted, this is a weird one, since I'm not clear if this would be a
boolean OR or AND situation, AND would be what it is, but it might be
interpreted as OR (ie, any MTTA vehicle, OR any bus; rather than "any bus
operated by MTTA").  We're also leaving out that while they're technically
not supposed to, MTTA maintenance vehicles, MTTA tow trucks and MTTA
supervisors also make the left turn there without so much as a second
glance from the traffic cops (arguably it's better to get the busses moving
again faster than make nonrevenue vehicles associated with the agency go
around and keep traffic on Denver flowing, so dinging these guys on a
technicality would go against the spirit of the law).


> But as far as I know there is no OSM routing engine that supports
> conditional restrictions yet, whatever the tag. It's not an easy problem,
> especially since the algorithm has to consider if the restriction applies
> at the time the user would arrive to that point, rather than at the time he
> asks for the route at the beginning of the trip.
>

Probably because if the editors can't figure it out, the consumers aren't
going to, either.  That said, this is a tagging issue first and foremost,
and I believe effective_hours=* would be an elegant solution.  Thoughts?
_______________________________________________
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk

Reply via email to