Key:collection_times

From OpenStreetMap Wiki
Jump to: navigation, search
Help
Available languages
English Français

collection_times


One example for collection_times

Description

Specifies when (e.g.) the post box is emptied resp. the letters are collected. Syntax is same as for opening_hours=*. This approved features deprecates original proposal called "emptying_times".

Group

Properties

Element help

Can be attached on nodes

Useful combination


Rationale

Specifies when the amenity=post_box is emptied resp. the collection is done. The syntax is the same as for opening_hours=*, including the hyphen because there are post boxes which are emptied several (undefined) times or one (undefined) time in a certain time frame. This shall be covered also. See examples below.

Contents


How to Map

This is a property tag so it must go with a related tag e.g.

See examples below or opening_hours for syntax.

The actual meaning results from the existence of a matching tag in the node, and there shouldn't be two of them in one node.

Key extension

In some places, specific collections occur and apply to mail only which is destined for local distribution. They can be tagged separately using the ":local" extension.

collection_times:local=*

Additional extensions may be added based on proposals.


In connection with


Examples

Post Box:

a) standard usage:
<node id='317572784' lat='50.9630365' lon='6.9527873' timestamp='2008-12-09T14:11:22Z'>
  <tag k='amenity' v='post_box'/>
  <tag k='collection_times' v='Mo-Fr 15:00,18:00,19:00,23:00; Sa 15:00; Su 10:30,23:00'/>
  <tag k='operator' v='Deutsche Post'/>
</node>
 
b) collection time frame and additional local collection:
<node id='317572784' lat='50.9630365' lon='6.9527873' timestamp='2008-12-09T14:11:22Z'>
  <tag k='amenity' v='post_box'/>
  <tag k='collection_times' v='Mo-Fr 09:00-12:00,17:00; Sa 14:00'/>
  <tag k='collection_times:local' v='Mo-Fr 23:00; Su 23:00'/>
  <tag k='operator' v='Deutsche Post'/>
</node>
Recycling Container:

a) suggestion of tagging
<node id='123' lat='123' lon='123' timestamp='2022-12-31T23:59:59Z'>
  <tag k='amenity' v='recycling'/>
  <tag k='collection_times' v='Mo'/>
  <tag k='operator' v='Wall-E Services'/>
</node>

All week days have to be in English: Mo, Tu, We, Th, Fr, Sa, Su.


Images

Rendering

The collection_times=* tag is not rendered itself. It contains an additional information to a amenity=post_box node which is rendered as a letter symbol. It's not likely that the collection time is rendered in a map at all but it would be imaginable to have a modified symbol in case a valid collection time is sepcified - like a small dot on it or a different color or something.

The renderer/parser has a list of tags which a) use the collection_times information and b) have an according rendering action assigned. In case it finds a post_box for instance, it looks for the collection_times tag in the node, and if it finds one, it's used to ... do what ever.

Code

PHP Code to parse opening_hours

See also

Personal tools
Namespaces
Variants
Actions
site
Toolbox