<div dir="ltr">On Tue, Oct 14, 2008 at 11:05 AM, Tristan Scott <span dir="ltr"><<a href="mailto:trs998@gmail.com">trs998@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">If this catches on not only do we have a well-defined and easily-processed value for "speed" to use in all manner of things, we also have a template for defining other data types (bridge height? maxweight?) which might (or might not) make the job of the data processor for an map consuming application (satnav etc) much easier.<br>
<br>Tristan<br><br><div class="gmail_quote">2008/10/14 David Earl <span dir="ltr"><<a href="mailto:david@frankieandshadow.com" target="_blank">david@frankieandshadow.com</a>></span><div><div></div><div class="Wj3C7c">
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>On 14/10/2008 18:26, Tristan Scott wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Given that SI units are standard across OSM could be define a "speed" value in addition to "Numeric" "String" etc like so:<br>
(default to kmh as specified before (also means not adding millions of pointless "kmh" strings to the db)<br>
Factor means "multiply by this to convert to SI - interpreters would either use value as-is or multiply by Factor for that suffix to get SI units.<br>
"Suffix" is the entire string after the numerical value, with whitespace trimmed - so spaced/not spaced suffix wouldn't matter - defining this rigidly would be ignored by most users, i suspect<br>
<br>
My proposed table:<br>
Unit - Factor<br>
"" - 1<br>
"kmh" - 1<br>
"mph" - 1.609<br>
"knots" - 1.852<br>
</blockquote>
<br>
<br></div>
+1.<br>
<br>
I really don't see what all the fuss is about. It's not exactly novel to do it this way: CSS puts units as part of the value.<br>
<br>
It's what I've been doing all along, except some pedant comes along and changes it to some incomprehensible decimal number almost as soon as I add them to the map (which means I can carry on doing it that way even if others think differently, as they'll get converted automatically as far as i am concerned and I don't have to think about a magic number in km/h).<br>
<font color="#888888">
<br>
David<br>
<br>
</font></blockquote></div></div></div></div></blockquote></div><br>What about just using the maxspeed tag with just a number and having a separate tag for the units. i.e., maxspeed=30; maxspeed_units=mph<br><br>Karl<br></div>