<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Nov 10, 2015 at 7:36 AM, Nicolás Alvarez <span dir="ltr"><<a href="mailto:nicolas.alvarez@gmail.com" target="_blank">nicolas.alvarez@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="auto"><div><span></span></div><div><span class=""><div><br></div><div>El 10 nov 2015, a las 09:57, Badita Florin <<a href="mailto:baditaflorin@gmail.com" target="_blank">baditaflorin@gmail.com</a>> escribió:<br><br></div><blockquote type="cite"><div><div dir="ltr">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.<div>Also, do you have an idea what software is using this attributies ?<br><div><br></div><div><a href="http://i.imgur.com/a1eBFoe.jpg" target="_blank">http://i.imgur.com/a1eBFoe.jpg</a><br></div><div><br></div><div>On the wiki the information is old and also deprecated</div></div><div><br></div><div><a href="http://wiki.openstreetmap.org/wiki/Relation:restriction" target="_blank">http://wiki.openstreetmap.org/wiki/Relation:restriction</a><br></div><div><br></div><div>It says about hour_on but on the wiki the tag is not valid. </div><div><br></div><div><a href="http://wiki.openstreetmap.org/wiki/Key:hour_on" target="_blank">http://wiki.openstreetmap.org/wiki/Key:hour_on</a></div><div><br></div><div>Should i use the <a href="http://wiki.openstreetmap.org/wiki/Key:opening_hours" target="_blank">http://wiki.openstreetmap.org/wiki/Key:opening_hours</a> tag, as recomented ?</div><div><br></div><div>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 </div></div></div></blockquote><br></span><div>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...</div></div></div></blockquote><div><br></div><div>I interpreted that as the format is identical to <font face="monospace, monospace">opening_hours=*</font>, but it's implied that there's a different tag for effective hours, without mentioning what that tag is.  Indeed <font face="monospace, monospace">hour_on=*</font>, <i>et. al.</i> were deprecated as being ambiguous for all but the simplest use cases (which is also why <font face="monospace, monospace">opening_hours=*</font> was created for POIs).  I'd be willing to go with <font face="monospace, monospace">effective_hours=*</font>, using the same format as <font face="monospace, monospace">opening_hours=*</font> 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.</div><div><br></div><div>For example, 36th and Harvard in Tulsa:  <a href="http://www.mapillary.com/map/im/thEPKkBiTOgqG3GwEoUieA/photo">http://www.mapillary.com/map/im/thEPKkBiTOgqG3GwEoUieA/photo</a></div><div>The sign reads "No left turn Mon-Sat 7AM-7PM".</div><div><br></div><div><font face="monospace, monospace">type=restriction</font></div><div><font face="monospace, monospace">restriction=no_left_turn</font></div><div><font face="monospace, monospace">effective_hours=Mo-Sa 07:00-19:00</font></div><div><br></div><div>A more complex example can be found at 11th and Denver: <a href="http://www.mapillary.com/map/im/iSaY1yIcDNfkt8lCfeaoOA/photo">http://www.mapillary.com/map/im/iSaY1yIcDNfkt8lCfeaoOA/photo</a>  The sign reads "no left turn 7:30-8:30AM, 4:15-5:30PM except MTTA busses".</div><div><br></div><div><font face="monospace, monospace">type=restriction</font></div><div><font face="monospace, monospace">restriction=no_left_turn</font></div><div><font face="monospace, monospace">effective_hours=7:30-8:30,16:15-17:30</font></div><div><font face="monospace, monospace">except=bus</font></div><div><font face="monospace, monospace">except:operator=Metropolitan Tulsa Transit Authority</font></div><div><br></div><div>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).</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="auto"><div><div>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.</div></div></div></blockquote><div><br></div><div>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 <font face="monospace, monospace">effective_hours=*</font> would be an elegant solution.  Thoughts?<br></div></div></div></div>