<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi.<br>
<br>
On 14.09.2010 18:59, Sean Horgan wrote:
<blockquote
cite="mid:AANLkTimgERCv5nP9_eSEngcqjooUKN+cwHe=WRptvZEh@mail.gmail.com"
type="cite">[...]</blockquote>
<blockquote
cite="mid:AANLkTimgERCv5nP9_eSEngcqjooUKN+cwHe=WRptvZEh@mail.gmail.com"
type="cite">Also, if I wanted to capture specific data about that
they offered, I'd like to follow the amenity:recycling tagging
scheme (<span class="Apple-style-span" style="font-family:
Verdana; font-size: 13px;"><a moz-do-not-send="true"
href="http://wiki.openstreetmap.org/wiki/Tag:amenity%3Drecycling"
style="color: rgb(85, 26, 139);">http://wiki.openstreetmap.org/wiki/Tag:amenity%3Drecycling</a>):</span>
<div><span class="Apple-style-span" style="font-family: Verdana;
font-size: 13px;"><br>
</span></div>
<div><span class="Apple-style-span" style="font-family: Verdana;
font-size: 13px;">+ homeless_shelter:programs=jobs</span></div>
<div><span class="Apple-style-span" style="font-family: Verdana;
font-size: 13px;">+ homeless</span><span
class="Apple-style-span" style="font-family: Verdana;
font-size: 13px;">_shelter</span><span
class="Apple-style-span" style="font-family: Verdana;
font-size: 13px;">:meals_served=breakfast</span></div>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<div><span class="Apple-style-span" style="font-family: Verdana;
font-size: 13px;">+ homeless</span><span
class="Apple-style-span" style="font-family: Verdana;
font-size: 13px;">_shelter</span><span
class="Apple-style-span" style="font-family: Verdana;
font-size: 13px;">:lodging=yes</span></div>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<div><span class="Apple-style-span" style="font-family: Verdana;
font-size: 13px;">+ homeless</span><span
class="Apple-style-span" style="font-family: Verdana;
font-size: 13px;">_shelter</span><span
class="Apple-style-span" style="font-family: Verdana;
font-size: 13px;">:emergency_medical=yes </span></div>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<div><br>
</div>
<div>Is this a good model to follow?</div>
</blockquote>
I'm not sure.<br>
I think, there are two general approaches to simulate a tree-style
tagging scheme like this.<br>
The first is to use more keys (as you do here with
homeless_shelter:*), the second is to use more values and to
concatenate multiple values by ; (like you will have at<br>
homeless_shelter:meals_served=breakfast;lunch<br>
(compare crossing=island;traffic_signals)<br>
<br>
Both are good for some reasons: <br>
using less keys provides easy access for the whole group of values;<br>
using less values is more easy to parse and search - there is no
string slicing needed.<br>
<br>
But:<br>
I would not mix these together.<br>
<br>
Perhaps that's only my POV - feel free to argument against.<br>
<br>
regards<br>
Peter<br>
</body>
</html>