[OSM-dev] Opening hours

Thomas Meller thomas.meller at gmx.net
Thu May 6 18:03:05 BST 2010


I have spent some thought on a simple linked list like in this template:

tag:next_tag=expression
next_tag:third_tag=expression
third_tag:following_tag=expression
following_tag=[validity|AND|OR|XOR] *which may be followed by even more tags

validity={restriction enabled|disabled} *always last in chain
expression={from_hour-to_hour|from_day-to_day|from_month-to_month|...}
where day={0[1-30]|[1-7]|[last|first|<numbered>](day-representation)}

You cannot fill such attributes manually, but it seems to be capable to define lots of, if not all, constellations.

I have travelled roads which are restricted in holiday times every day and on all sundays between June and October, to be used upwards between 1:00-1:30, 2:00-2:30 ... and downwards between 1:30-2:00, 2:30-3:00 ...

Which means as much as one-way at a timed schedule.
Reason: narrow tunnels without light, steep cliffs and not enough space for securing the way ...

Well, wilderness calls
;-)

-------- Original-Nachricht --------
> Datum: Fri, 7 May 2010 01:40:09 +1000
> Von: John Smith <deltafoxtrot256 at gmail.com>
> An: Roland Olbricht <roland.olbricht at gmx.de>
> CC: dev at openstreetmap.org
> Betreff: Re: [OSM-dev] Opening hours

> On 6 May 2010 23:55, Roland Olbricht <roland.olbricht at gmx.de> wrote:
> > On the other hand, a line like "Mo-Fr 09:00-12:00; Tu 14:00-17:00" may
> read
> > - on Tuesdays also in the afternoon  or
> > - on Tuesdays only in the afternoon.
> > While the former is far more common, the latter is what the current
> syntax
> > defines.
> 
> It's always easier to add hours of operation, rather than trying to
> make things more complex by trying to subtract it which the current
> documentation doesn't extent to.
> 
> eg "Mo-Fr 09:00-12:00; Tu 09:00-12:00,14:00-17:00"
> 
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev

-- 
http://www.openstreetmap.org/?lat=47.172&lon=7.4395&zoom=15&layers=B000FTFTT&mlat=47.16696&mlon=7.43509

GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01




More information about the dev mailing list